# capture-element

> capture element using puppeteer

Latest version **0.2.2** (published 2017-09-14) · MIT license · 0 weekly downloads

## Install

```sh
npm install capture-element
pnpm add capture-element
yarn add capture-element
bun add capture-element
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.2.2 |
| Published | 2017-09-14 |
| First published | 2017-09-03 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=6.10.0 |
| Dependencies | 1 |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 4 |
| Author | akameco |
| Maintainers | akameco |
| Keywords | puppeteer, capture, element |

## Links

- npm: https://www.npmjs.com/package/capture-element
- Repository: https://github.com/akameco/capture-element
- Homepage: https://github.com/akameco/capture-element#readme
- Issues: https://github.com/akameco/capture-element/issues
- npm.io page: https://npm.io/package/capture-element

## Dependencies (1)

- [puppeteer](https://npm.io/package/puppeteer.md) ^0.10.2

## Alternatives

- [@snazzah/davey](https://npm.io/package/@snazzah/davey.md) — 1.5M weekly downloads
- [@vendure/testing](https://npm.io/package/@vendure/testing.md) — 8.3K weekly downloads
- [vue-simple-context-menu](https://npm.io/package/vue-simple-context-menu.md) — 6.6K weekly downloads
- [cypress-webpack-preprocessor-v5](https://npm.io/package/cypress-webpack-preprocessor-v5.md) — 2.1K weekly downloads
- [@backstage/plugin-catalog-backend-module-puppetdb](https://npm.io/package/@backstage/plugin-catalog-backend-module-puppetdb.md) — 1.3K weekly downloads

## Recent versions

- 0.2.2 (latest) — 2017-09-14
- 0.2.1 — 2017-09-03
- 0.2.0 — 2017-09-03
- 0.1.1 — 2017-09-03
- 0.1.0 — 2017-09-03

## README

# capture-element
[![Build Status](https://travis-ci.org/akameco/capture-element.svg?branch=master)](https://travis-ci.org/akameco/capture-element)
[![styled with prettier](https://img.shields.io/badge/styled_with-prettier-ff69b4.svg)](https://github.com/prettier/prettier)

> capture element using puppeteer


## Install

```
$ npm install capture-element
```


## Usage

```js
const fs = require('fs');
const captureElement = require('capture-element')

captureElement(
  'https://github.com/akameco',
  '.js-calendar-graph'
).then(buffer => {
  fs.writeFileSync(buffer, 'github.png')
})
```


## API

### captureElement(url, element)

#### input

Type: `string`

target url.

#### element

Type: `String`

target element.

## Related

* [**akameco/capture-mobile-tweet** <br> - Caputre mobile tweet](https://github.com/akameco/capture-mobile-tweet)
* [**akameco/capture-tweet** <br> - Caputre tweet](https://github.com/akameco/capture-tweet)
* [**akameco/capture-github-kusa** <br> - Caputre github kusa](https://github.com/akameco/capture-github-kusa)
* [**akameco/capture-tweet-api** <br> - capture tweet api](https://github.com/akameco/capture-tweet-api)

## License

MIT © [akameco](http://akameco.github.io)

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