0.9.5 • Published 1 year ago
screenshot-nextgen v0.9.5
Screenshot NextGen
A TypeScript module for generating and validating screenshot URLs for different devices.
Installation
Install the package via npm:
npm install screenshot-nextgenUsage
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
laptopcomputerandroidipadiphonesmalliphonesmallandroid
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"
}