screenshot-nextgen
v0.9.5
Published
Any website can screenshot
Downloads
10
Maintainers
Readme
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"
}