Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/boo1ean/node-screenshotlayer

Api client for screenshotlayer
https://github.com/boo1ean/node-screenshotlayer

Last synced: 30 days ago
JSON representation

Api client for screenshotlayer

Awesome Lists containing this project

README

        

## Api client for [screenshotlayer](https://screenshotlayer.com)

Simple promise-based api client for making screenshots via [screenshotlayer](https://screenshotlayer.com)

## Installation

```
npm install screenshotlayer
```

## Usage

```javascript
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