A TypeScript module for generating and validating screenshot URLs for different devices.
Install the package via npm:
npm install screenshot-nextgen
Import the module and use it to generate and validate screenshot URLs.
import ss from 'screenshot-nextgen';
or
const ss = require('screenshot-nextgen')
(async () => {
try {
const response = await ss("laptop", "https://youtube.com");
console.log(response);
} catch (error) {
console.error(error);
}
})();
laptop
computer
android
ipad
iphone
smalliphone
smallandroid
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"
}