From 99cf4d11940e2e82768269d9b475b2aa6b18b423 Mon Sep 17 00:00:00 2001 From: Elbert Alias Date: Fri, 17 Nov 2017 08:42:32 +1100 Subject: [PATCH] Update NPM README --- src/drivers/npm/README.md | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) 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); +}); ```