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

Package Sidebar

Install

npm i screenshotlayer

Weekly Downloads

5

Version

1.0.0

License

MIT

Last publish

Collaborators

  • boo1ean