capture-element
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
- akameco/capture-mobile-tweet
- Caputre mobile tweet - akameco/capture-tweet
- Caputre tweet - akameco/capture-github-kusa
- Caputre github kusa - akameco/capture-tweet-api
- capture tweet api
License
MIT © akameco