Promise wrapper around screenshot-stream
$ npm install --save screenshot-promise
const fs = require('fs');
const screenshotPromise = require('screenshot-promise');
screenshotPromise('http://google.com', '1024x768', {crop: true}).then(buf => {
fs.writeFileSync('google.com-1024x768.png', buf);
});
See screenshot-stream.
MIT © Kevin Martensson