cli-icomoon
v1.0.5
Published
This helper is used for automation font generation through the [icomoon.io](https://icomoon.io/) service.
Downloads
3
Readme
This helper is used for automation font generation through the icomoon.io service.
Usage
Place in your script code:
const icomoon = require('cli-icomoon');
icomoon({iconsPath: './src/icons', outputPath: './dist'});
What the script does
Generates a styles and fonts from SVG images in specified directory.
Additional Information
- Property
iconsPath
- directory with SVG images. - The generated fonts are located in the
{outputPath}/fonts
path. - Generated css is saved in
{outputPath}/css/icomoon.css
and alternate scss version in{outputPath}/scss/icomoon.scss
. - The script creates
{outputPath}/tmp
for temporary files. The script automatically deletes this directory upon completion. - The naming of the font classes matches the file names. For example, a
./src/icons/bars.svg
file will have classicon-bars
.