/dom-camera

📷 Take a picture of a DOM

Primary LanguageJavaScriptMIT LicenseMIT

📷 dom-camera

NPM Version JavaScript Style Guide

Take a picture of a dom.

npm i dom-camera

Usage

const capture = require('dom-camera')

await capture('https://example.com', 'h1', 'test.png')

and the output:

API

####capture(url, selector, outputPath)

License

The MIT License