diff --git a/src/drivers/npm/README.md b/src/drivers/npm/README.md index 8028e0281..23227a613 100644 --- a/src/drivers/npm/README.md +++ b/src/drivers/npm/README.md @@ -38,9 +38,13 @@ const wappalyzer = require('wappalyzer')(options); wappalyzer.analyze('https://www.wappalyzer.com') .then(json => { - console.log(JSON.stringify(json, null, 2)); + process.stdout.write(JSON.stringify(json, null, 2) + '\n') + + process.exit(0); }) .catch(error => { - console.error(error); - }); + process.stderr.write(error + '\n') + + process.exit(1); +}); ```