[go: nahoru, domu]

screenshot-nextgen
TypeScript icon, indicating that this package has built-in type declarations

0.9.5 • Public • Published

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"
}

Package Sidebar

Install

npm i screenshot-nextgen

Weekly Downloads

9

Version

0.9.5

License

MIT

Unpacked Size

9.01 kB

Total Files

12

Last publish

Collaborators

  • project-nextgen