I want to add an ovewrite to the file below with docs it shows the place to be added but i'm not sure how to write in.
const captureWebsite = require('capture-website');
(async () => {
await captureWebsite.file('https://mywebsite.com', 'screenshot.png');
})();
this is the overwrite Boolean
overwrite Type: Boolean, Default: false, Overwrite the destination file if it exists instead of throwing an error. This option applies only to captureWebsite.file().
Aucun commentaire:
Enregistrer un commentaire