getscreenshot.js
v4.0.0
Published
Website screenshot getter. (No api key, No limit, 100% free)
Downloads
6,460
Maintainers
Readme
📝 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, // Buffer
screenshotV2, // Buffer
screenshotV3 // Link
} = require('getscreenshot.js')
const fs = require('fs')
Screenshot
// Screenshot V1 (buffer)
var data = await screenshotV1('https://github.com/')
fs.writeFileSync('vihanga.png',data)
// Screenshot V2 (buffer)
var data = await screenshotV2('https://github.com/')
fs.writeFileSync('vihanga.png',data)
// Screenshot V3 (link)
var data = await screenshotV1('https://github.com/')
console.log(data)
✍️ Authors
- @vihangayt0 Project Author