Skip to content

Latest commit

 

History

History
35 lines (24 loc) · 1.07 KB

README.md

File metadata and controls

35 lines (24 loc) · 1.07 KB

dom-to-html

NPM version build status Test coverage npm download

Convert a dom element including canvas and svg to an html.

Installation

$ npm i dom-to-html

Usage

import { domToHTML } from 'dom-to-html';

const html = domToHTML(domElement);

This method will render SVG to canvas and copy all the resulting graphics as base64 url encoded img.

License

MIT