@kebian/fontawesome-free-metadata
v1.0.4
Published
Metadata for Font Awesome free icons
Downloads
5
Readme
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}`)
}