2.0.0 • Published 8 years ago

screenshot-promise v2.0.0

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

screenshot-promise Build Status

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