Package Exports
- htmlsvg
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (htmlsvg) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
htmlToSvg
converts html div to svg images
Install
$ npm install htmltosvgUsage
const htmlToSvg = require("html-to-svg");
const svg = htmlToSvg("divId");
console.log(svg)
You can directly download svg with passing config object
const htmlToSvg = require("htmltosvg");
const svgConfig = {
download:true
}
const svg = htmlToSvg("divId",svgConfig);
console.log(svg)