JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 147
  • Score
    100M100P100Q83838F
  • License ISC

convert html code to svg

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 htmltosvg

Usage

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)