brenden / node-webshot

Easy website screenshots in Node.js
2.12k stars 286 forks source link

Documentation clarity #215

Open mxchinegod opened 6 years ago

mxchinegod commented 6 years ago

Not sure if this affects everyone but with the example provided, I noticed you have to add protocol (http, etc.) to the request parameter for the site to take a screenshot of, i.e.

webshot('http://localhost:8000', file, function(err) { console.log(err) res.sendFile(file) }); }

rather than the first line being webshot('localhost:8000'...