@multivisio/fa-pro-to-iconify-json
v1.0.1
Published
Convert Font Awesome Pro SVG icons to Iconify JSON collections and create custom Iconify icon sets programmatically in Node.js or TypeScript projects.
Downloads
14
Readme
@multivisio/fa-pro-to-iconify-json
Convert Font Awesome Pro SVG icons to Iconify JSON collections and create custom Iconify icon sets programmatically in Node.js or TypeScript projects.
Features
- Convert Font Awesome Pro SVG icons to Iconify JSON
- Create your own Iconify icon sets
- Supports various Font Awesome styles (solid, regular, light, thin, brands)
- Usable as a library in Node.js/TypeScript projects
Installation
npm install @multivisio/fa-pro-to-iconify-jsonUsage
Programmatic (Node.js/TypeScript)
import { buildIconSet } from "@multivisio/fa-pro-to-iconify-json";
const iconSet = buildIconSet("my-icons", {
prefix: "fas",
iconNames: ["user", "home", "star"],
});
// iconSet is an Iconify-compatible JSON objectAPI
buildIconSet(name, icons)
- name: Name/prefix for the Iconify set (string)
- icons:
- Either an object
{ prefix, iconNames }(Font Awesome style and icon names) - Or an array of Font Awesome
IconDefinitionobjects
- Either an object
Returns:
An Iconify-compatible JSON object with the selected icons.
License
ISC
Author
Michael Dörer
Important Notice
A valid Font Awesome Pro license is required to use Font Awesome Pro icons with this tool.
Please ensure you comply with the Font Awesome Pro licensing terms.
