1.0.0 • Published 2 years ago

svg-font-extractor v1.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

svg-font-extractor

Extract all glyphs in the svg font to separate svg icon files

Install

npm i svg-font-extractor

Usage

const SFE = require('svg-font-extractor');
SFE({
    input: "path/to/svg-font.svg",
    output: "path/to/output/dir",
    onSVGItem: function(item) {
        // update item name if no glyph-name
        // item.name = youNameMap[item.unicode]
        return item;
    }
});

see test/test/js

Changelog