svg-font-extractor

1.0.0 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i svg-font-extractor

Weekly Downloads

2

Version

1.0.0

License

MIT

Unpacked Size

8.45 kB

Total Files

5

Last publish

Collaborators

  • cenfun