svg2js
Handy utility to convert SVG images to inline Javascript
Installation
npm install --save svg2js
Usage
Svg2Js API is Promise based
Usage 1 (Save to file as Javascript Module):
Svg2Js
after conversion JS SVG can be used as regular JS module
var MySvgImage = //USE MySvgImage as inline value for rendering in various tools/libs
Usage 2 (Get inline value):
Svg2Js
Contributing
Basicaly clone, change, test, push and pull request.
License
icon-toolkit is licensed under the MIT license.