screencapture-url
v1.0.2
Published
Capture a screenshot of a webpage using GoogleChromes/puppeteer
Downloads
3
Maintainers
Readme
screencapture-url
Capture a screenshot of a webpage using Google's puppeteer
Installation
$ yarn add screencapture-url
or
$ npm install screencapture-url --save
Usage
Full API documentation see API.md
// fast example
(async () =>
const result = await new Screenshot()
.of('http://example.com')
.to('.')
.withName('my_screenshot')
.asPng()
.take()
console.log(result) // Output: { path: './my_screenshot.png', screenshot: <Buffer 89 50 4e 47 0d 0a ...> }
)()
See also
License
MIT, see LICENSE.md for more details.