Options
Allow JavaScript

allowJs

allowJs is an optional property that allows to enable or disable JavaScript on the page. The default value is true.

api/routes/screenshot.ts
const { UrlToImage } from '@url2image/sdk'
 
const { data, success, message } = await UrlToImage({
    url: 'URL_TO_SCREENSHOT',
    token: 'YOUR_API_KEY',
    options: {
        allowJs: false
    }
})