0.2.2 • Published 7 years ago

capture-element v0.2.2

Weekly downloads
3
License
MIT
Repository
github
Last release
7 years ago

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.

Related

License

MIT © akameco