Socket
Book a DemoInstallSign in
Socket

screenshot-nextgen

Package Overview
Dependencies
Maintainers
0
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

screenshot-nextgen

Any website can screenshot

0.9.5
latest
npmnpm
Version published
Weekly downloads
0
-100%
Maintainers
0
Weekly downloads
 
Created
Source

Screenshot NextGen

A TypeScript module for generating and validating screenshot URLs for different devices.

Installation

Install the package via npm:

npm install screenshot-nextgen

Usage

Import the module and use it to generate and validate screenshot URLs.

Importing the Module

import ss from 'screenshot-nextgen';

or

const ss = require('screenshot-nextgen')

Example Usage

(async () => {
  try {
    const response = await ss("laptop", "https://youtube.com");
    console.log(response);
  } catch (error) {
    console.error(error);
  }
})();

Valid Device Types

  • laptop
  • computer
  • android
  • ipad
  • iphone
  • smalliphone
  • smallandroid

JSON Result

The function returns a JSON object with the following structure:

{
  "image": "https://choruofficial.chatbotcommunity.ltd/screenshot?device=laptop&link=https://youtube.com",
  "link": "https://choruofficial.chatbotcommunity.ltd",
  "OwnerServer": "Choru Tiktokers"
}

Keywords

puppeteer

FAQs

Package last updated on 19 Aug 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

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.