npm.io
0.2.2 • Published 9 years ago

capture-element

Licence
MIT
Version
0.2.2
Deps
1
Vulns
1
Weekly
0
Stars
4

capture-element

Build Status styled with prettier

capture element using puppeteer

Install

$ npm install capture-element

Usage

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.

License

MIT akameco

Keywords