WEB ScreenShot
takes a screenshot of a website or web page and saves it as a image file.
📝 Table of Contents
🧐 About
This project takes a screenshot of a website or web page and saves it as a image file. The screenshot can be taken of the entire page or of a specific region.
🏁 Getting Started
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes
Installing
yarn add getscreenshot.js
or
npm i getscreenshot.js
🎈 Usage
const {
screenshotV1,
screenshotV2,
screenshotV3
} = require('getscreenshot.js')
const fs = require('fs')
Screenshot
var data = await screenshotV1('https://github.com/')
fs.writeFileSync('vihanga.png',data)
var data = await screenshotV2('https://github.com/')
fs.writeFileSync('vihanga.png',data)
var data = await screenshotV1('https://github.com/')
console.log(data)
✍️ Authors