@kebian/fontawesome-free-metadata

1.0.4 • Public • Published

Metadata for Font Awesome Free

Upon install, this packages parses the YAML metadata from the @fortawesome/fontawesome-free package and creates JSON exports.

Example CommonJS usage:

const { categories, icons, shims, sponsors } = require('@kebian/fontawesome-free-metadata')

const iconNames = Object.keys(icons)
for (const name of iconNames) {
    console.log(`${name}: ${icons[name].label}`)
}

Example ES6 usage:

import { categories, icons, shims, sponsors } from '@kebian/fontawesome-free-metadata'

const iconNames = Object.keys(icons)
for (const name of iconNames) {
    console.log(`${name}: ${icons[name].label}`)
}

Package Sidebar

Install

npm i @kebian/fontawesome-free-metadata

Weekly Downloads

1

Version

1.0.4

License

MIT

Unpacked Size

3.35 kB

Total Files

9

Last publish

Collaborators

  • kebian