0.9.5 • Published 11 months ago

screenshot-nextgen v0.9.5

Weekly downloads
-
License
MIT
Repository
-
Last release
11 months ago

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

11 months ago

0.9.2

11 months ago

0.9.0

11 months ago