screenshotlayer

1.0.0 • Public • Published

Api client for screenshotlayer

Simple promise-based api client for making screenshots via screenshotlayer

Installation

npm install screenshotlayer

Usage

var capture = require('screenshotlayer')('your api key');

// Screenshot with default options (viewport = 1440x900 & width = 250)
capture('http://example.com', '/path/to/save').then(function () {
	// done
});

// Using custom options (see https://screenshotlayer.com/documentation for details)
capture('http://example.com', '/path/to/save', { width: 500 }).then(function () {
	// done
});

License

MIT

Dependencies (3)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i screenshotlayer

    Weekly Downloads

    6

    Version

    1.0.0

    License

    MIT

    Last publish

    Collaborators

    • boo1ean