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:
Bootstrap Icons
- Bootstrap Icons
- License: MIT
- Version: 1.13.1
Flag Icons
- Flag Icons
- License: MIT
- Version: 7.3.2
Bootstrap 3 Glyphicons (available as SVGs)
- Bootstrap 3 Icons
- License: MIT
- Version: 3.4.1
Tabler Icons
- Tabler Icons
- License: MIT
- Version: 3.31.0
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.