font-awesome-v5-icons
TypeScript icon, indicating that this package has built-in type declarations

1.3.0 • Public • Published

font-awesome-v5-icons Build Status

Returns actual list of Font Awesome v5 icons (plain JS array)

Install

$ npm install --save font-awesome-v5-icons

Usage

const faIcons = require('font-awesome-v5-icons');

faIcons.getList().then(icons => console.log(icons.length));
//=> 875

faIcons.getList().then(icons => console.log(icons[0]));
/*=>
{ name: '500px',
  changes: [ '4.4', '5.0.0' ],
  label: '500px',
  search: { terms: [] },
  styles: [ 'brands' ],
  unicode: 'f26e',
  voted: false
}
*/

API

.getList()

Type: function

Returns a promise with a full list of actual Font Awesome v5 icons.

.getListByKeys(arrayOfNeededKeys)

Type: function

Returns a promise with a full list of Font Awesome icons with needed keys only.

const faIcons = require('font-awesome-v5-icons');

faIcons.getListByKeys(['name', 'styles']).then(icons => console.log(icons[0]));
//=> { name: '500px', styles: [ 'brands' ] }

Additional features

  • TypeScript declarations

Related

font-awesome-icons – separate package for Font Awesome v4

License

MIT © Sergii Lysenko

Package Sidebar

Install

npm i font-awesome-v5-icons

Weekly Downloads

192

Version

1.3.0

License

MIT

Unpacked Size

267 kB

Total Files

6

Last publish

Collaborators

  • soulwish