Converts SVG icons to Iconify JSON data, allowing the use of popular Nuxt modules such as Nuxt Icon or NuxtUI.
Using NPM or whatever your preferred package manager is
npm i -g @aautcq/svg-to-iconify
svg-to-iconify
The svg-to-iconify
command comes with the following options
Option label | Description | Default value |
---|---|---|
-a , --author
|
Icon set author field | os.userInfo().username |
-p , --prefix
|
Icon set prefix | 'custom' |
-s , --source
|
Path to the folder hosting the SVG files |
'.' (current folder) |
-o , --output
|
Path to the output folder for the JSON file | Same as source |
A JSON file containing the new icon set will be created in the output directory.
- Unit tests