screencapture-url

1.0.2 • Public • Published

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

Package Sidebar

Install

npm i screencapture-url

Weekly Downloads

0

Version

1.0.2

License

MIT

Unpacked Size

1 MB

Total Files

15

Last publish

Collaborators

  • amlang