1.0.1 • Published 3 years ago

fontawesome-5-icons-list v1.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

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

Example Output screenshot

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

Changelog

read from here

LICENSE

MIT