easy-wkhtmltoimage
v1.0.1
Published
A simple wrapper for the wkhtmltoimage command line tool.
Downloads
6
Maintainers
Readme
easy-wkhtmltoimage
Installation
$ npm install easy-wkhtmltoimage
Usage
var wkHtmlToImage = require('easy-wkhtmltoimage');
var options = {
input: 'https://google.com',
output: 'google.png'
};
wkHtmlToImage.generate(options, (code, filename) => {
if(code == 0) {
console.log('Image is saved at: ' + filename);
}
});