nano-svg2js

1.0.9 • Public • Published

Gitter NPM version Build status Test coverage Dependency Status License Downloads

nano-svg2js

SVG to JS.

API

parseSVG(svg_text)

Return Promise object of parsed svg.

optimizeIds(jsvg)

Returns modified(in place) jsvg tree with short ids except symbols identifiers.

optimizeJSVG(jsvg)

Returns optimized in place jsvg tree.

packJSVG(jsvg)

Returns packed JSVG tree.

Readme

Keywords

Package Sidebar

Install

npm i nano-svg2js

Weekly Downloads

11

Version

1.0.9

License

MIT

Last publish

Collaborators

  • holixus