1.0.2 • Published 5 years ago

screencapture-url v1.0.2

Weekly downloads
1
License
MIT
Repository
gitlab
Last release
5 years ago

screencapture-url

Capture a screenshot of a webpage using Google's puppeteer

Build Status Code Coverage MIT License NPM screencapture-url XO code style FOSSA Status

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

GoogleChrome/puppeteer

License

MIT, see LICENSE.md for more details.

FOSSA Status