fontawesome-5-icons-list
v1.0.1
Published
A package to get all icons name from fontawesome 5 free version
Downloads
248
Maintainers
Readme
Fontawesome 5 Icons List
About
A package to get all icons name from fontawesome free version
Features And Props
- all icons list
- get icon by search
- get special icons style
Installation
Note: You can use yarn or npm as a package manager, here i'm using yarn
yarn add fontawesome-5-icons-list
Example Output
Usage
Get All
// the whole list without any filtering
const { all } = require("fontawesome-5-icons-list");
console.log(all); // array of objects contains the icons informations
Search
// list of searched icons
const { search } = require("fontawesome-5-icons-list");
console.log(search("home")); // array of objects contains the icons informations
Get Icons By Style
// list of icons based on searched style (brands, solid, regular)
const { iconsListByStyle } = require("fontawesome-5-icons-list");
console.log(iconsListByStyle("regular")); // array of objects contains the icons informations with regular style