Convert any dom tree to an image element
npm install imgConvert any dom tree to an image element.
``
const img = require('img');
// create a rendered image of the DOM element with id 'my-element' and attach it to the end of the document
img($('#my-element')[0], function(img) {
document.body.appendChild(img);
});
// create a rendered