Meet npm Pro: unlimited public & private packages + package-based permissions.Learn more »

screenshot-promise

2.0.0 • Public • Published

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

Install

npm i screenshot-promise

DownloadsWeekly Downloads

28

Version

2.0.0

License

MIT

Last publish

Collaborators

  • avatar
  • avatar