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

/screenshot-promise/

    Package Sidebar

    Install

    npm i screenshot-promise

    Weekly Downloads

    2

    Version

    2.0.0

    License

    MIT

    Last publish

    Collaborators

    • kevva
    • samverschueren