capture-element

0.2.2 • Public • Published

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

Package Sidebar

Install

npm i capture-element

Weekly Downloads

7

Version

0.2.2

License

MIT

Last publish

Collaborators

  • akameco