Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/boo1ean/node-screenshotlayer
- Owner: boo1ean
- Created: 2015-11-09T23:02:06.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2015-11-09T23:02:27.000Z (about 9 years ago)
- Last Synced: 2024-04-14T18:42:12.287Z (7 months ago)
- Language: JavaScript
- Size: 0 Bytes
- Stars: 0
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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