Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

font-awesome-v5-icons

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

font-awesome-v5-icons

Returns actual list of Font Awesome icons (works with FA version 5)

  • 1.3.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
95
decreased by-53.2%
Maintainers
1
Weekly downloads
 
Created
Source

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

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

License

MIT © Sergii Lysenko

Keywords

FAQs

Package last updated on 24 Dec 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc