Website screenshot getter. (No api key, No limit, 100% free)
npm install getscreenshot.js takes a screenshot of a website or web page and saves it as a image file.
sh
yarn add getscreenshot.js
`
or
`sh
npm i getscreenshot.js
`
🎈 Usage
`ts
const {
screenshotV1, // Buffer
screenshotV2, // Buffer
screenshotV3 // Link
} = require('getscreenshot.js')
const fs = require('fs')
`
Screenshot
`ts
// 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)
``