1.4.0 • Published 3 years ago

node-dom-to-image v1.4.0

Weekly downloads
1
License
MIT
Repository
-
Last release
3 years ago

DOM to Image

What is it

node-dom-to-image is a library which converts any DOM node into a downloadable image.

Installation

NPM

npm install node-dom-to-image

Then load

/* in ES 6 */
import domtoimage from 'node-dom-to-image';
/* in ES 5 */
var domtoimage = require('node-dom-to-image');

Usage

import domToImage from 'node-dom-to-image'

const anyFunction = () => {
  const node = document.querySelector('.example')
  domToImage(node, 'example')
}

anyFunction() // This will download the image

Authors

Gabriel Cuenca

License

MIT

1.4.0

3 years ago

1.3.2

4 years ago

1.3.1

4 years ago

1.3.0

4 years ago

1.1.1

4 years ago

1.1.0

4 years ago

1.0.0

4 years ago