2.0.0 • Published 8 years ago
screenshot-promise v2.0.0
screenshot-promise
Promise wrapper around screenshot-stream
Install
$ npm install --save screenshot-promise
Usage
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);
});
API
See screenshot-stream.
License
MIT © Kevin Martensson