1.0.1 • Published 8 years ago

easy-wkhtmltoimage v1.0.1

Weekly downloads
5
License
MIT
Repository
github
Last release
8 years ago

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);
  }
});