Détail du package

aloha-svg

ilia-brykin162MIT1.7.0

Aloha-SVG is a versatile library of SVG icons and their JavaScript equivalents, providing seamless integration into JS projects.

SVG, icons, JavaScript, JS

readme

npm (scoped) NPM npm

Aloha-SVG

Aloha-SVG is a collection of SVG icons and their JavaScript equivalents, designed to simplify integration into JavaScript projects. It provides both raw SVG files and pre-converted JavaScript modules for easy usage.

Features

  • A comprehensive collection of SVG icons from popular libraries.
  • Pre-converted JavaScript modules for effortless use in JS projects.
  • Support for multiple open-source icon libraries with more to be added.
  • Distributed under the MIT license for wide compatibility.

Installation

To install the Aloha-SVG package via npm, run the following command:

npm install aloha-svg

Included Icon Libraries

Currently, Aloha-SVG includes icons from the following libraries:

  1. Bootstrap Icons

  2. Flag Icons

  3. Bootstrap 3 Glyphicons (available as SVGs)

  4. Tabler Icons

This list will expand in the future as more libraries are added.

Usage

Aloha-SVG provides both raw SVG files and their JavaScript equivalents. Simply import the icons or SVGs you need into your project:

import AlphabetUppercase from 'aloha-svg/js/bootstrap/AlphabetUppercase.js';
import ArrowDown from 'aloha-svg/js/bootstrap3/ArrowDown.js';
import De from 'aloha-svg/js/flags/1x1/De.js';
import Bg from 'aloha-svg/js/flags/4x3/Bg.js';
import Alarm from 'aloha-svg/js/tabler/filled/Alarm.js';
import Activity from 'aloha-svg/js/tabler/outline/Activity.js';

document.body.innerHTML = AlphabetUppercase;

License

This project is licensed under the MIT License. See the LICENSE file for details.