Socket
Book a DemoInstallSign in
Socket

getscreenshot.js

Package Overview
Dependencies
Maintainers
0
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

getscreenshot.js

Website screenshot getter. (No api key, No limit, 100% free)

latest
Source
npmnpm
Version
4.0.0
Version published
Weekly downloads
3.9K
-20.14%
Maintainers
0
Weekly downloads
 
Created
Source

VihangaYT NPMs

WEB ScreenShot

Status GitHub Issues GitHub Pull Requests License

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, // 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

Keywords

sceenshot

FAQs

Package last updated on 31 Oct 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts