# screencapture-url

> Capture a screenshot of a webpage using GoogleChromes/puppeteer

Latest version **1.0.2** (published 2019-01-03) · MIT license · 0 weekly downloads

## Install

```sh
npm install screencapture-url
pnpm add screencapture-url
yarn add screencapture-url
bun add screencapture-url
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.2 |
| Published | 2019-01-03 |
| First published | 2018-08-19 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | ^8.10.0 \|\| >=9.10.0 |
| Dependencies | 3 |
| Unpacked size | 977.4 KB |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | yes |
| Author | Alexander Lang |
| Maintainers | amlang |
| Keywords | google-puppeteer, puppeteer, screenshot, screencapture, url, webpage, headless, capture |

## Links

- npm: https://www.npmjs.com/package/screencapture-url
- Repository: https://gitlab.com/amlang/screencapture-url
- Homepage: https://gitlab.com/amlang/screencapture-url.git
- Issues: https://gitlab.com/amlang/screencapture-url/issues
- npm.io page: https://npm.io/package/screencapture-url

## Dependencies (3)

- [uuid](https://npm.io/package/uuid.md) ^3.3.2
- [assert](https://npm.io/package/assert.md) ^1.4.1
- [puppeteer](https://npm.io/package/puppeteer.md) ^1.7.0

## Alternatives

- [base64url](https://npm.io/package/base64url.md) — 6.1M weekly downloads
- [get-installed-path](https://npm.io/package/get-installed-path.md) — 502.9K weekly downloads
- [@uppy/url](https://npm.io/package/@uppy/url.md) — 185.8K weekly downloads
- [@d3fc/d3fc-shape](https://npm.io/package/@d3fc/d3fc-shape.md) — 16.2K weekly downloads
- [localizer](https://npm.io/package/localizer.md) — 226 weekly downloads

## Recent versions

- 1.0.2 (latest) — 2019-01-03
- 1.0.0 — 2018-08-19

## README

# screencapture-url
Capture a screenshot of a webpage using Google's puppeteer

[![Build Status](https://gitlab.com/amlang/screencapture-url/badges/master/build.svg)](https://gitlab.com/amlang/screencapture-url/pipelines)  [![Code Coverage](https://gitlab.com/amlang/screencapture-url/badges/master/coverage.svg)](https://gitlab.com/amlang/screencapture-url/pipelines) [![MIT License](https://img.shields.io/badge/licence-MIT-blue.svg)](https://opensource.org/licenses/MIT) [![NPM screencapture-url](https://img.shields.io/npm/v/screencapture-url.svg)](https://npmjs.org/package/screencapture-url) [![XO code style](https://img.shields.io/badge/code_style-XO-5ed9c7.svg)](https://github.com/xojs/xo) [![FOSSA Status](https://app.fossa.io/api/projects/git%2Bgitlab.com%2Famlang%2Fscreencapture-url.svg?type=shield)](https://app.fossa.io/projects/git%2Bgitlab.com%2Famlang%2Fscreencapture-url?ref=badge_shield)


## Installation
```bash
$ yarn add screencapture-url
```
or
```bash
$ npm install screencapture-url --save
```
## Usage
Full API documentation see [API.md](./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](https://github.com/GoogleChrome/puppeteer)

## License
MIT, see [LICENSE.md](./LICENSE.md) for more details.

[![FOSSA Status](https://app.fossa.io/api/projects/git%2Bgitlab.com%2Famlang%2Fscreencapture-url.svg?type=large)](https://app.fossa.io/projects/git%2Bgitlab.com%2Famlang%2Fscreencapture-url?ref=badge_large)

---
_Source: https://npm.io/package/screencapture-url · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
