svg-stringifier

3.0.2 • Public • Published

svg-stringify

extract path to from svg files and generate an index


useful for replacing inline svg, without losing ability to change colors

Install

npm install svg-stringifier

#or

yarn add svg-stringifier

Run

add script to your package.json

svg-stringify {pathToSvgIcons}

generates "import-SvgIconsFolder.js" and typescript module

Can be used in Quasar's iconMapFn to create custom icon sets.

Works great with jam icons.

Attributions:

Icon normalization: pathfit library

Svg parsing library: svg-parser

Beautifier: js-beautify

Can only process single path SVG files. Can extract a nested path.

Dependencies (4)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i svg-stringifier

    Weekly Downloads

    0

    Version

    3.0.2

    License

    MIT

    Unpacked Size

    28.5 kB

    Total Files

    20

    Last publish

    Collaborators

    • lazaroofarrill