From 0b5005d30d76955a62ab342b48c7986574669c50 Mon Sep 17 00:00:00 2001 From: Finnian Anderson Date: Mon, 9 Oct 2017 16:11:00 +0100 Subject: [PATCH] Replace console.log with process.stdout.write for Node templates Signed-off-by: Finnian Anderson --- template/node-arm64/index.js | 2 +- template/node/index.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/template/node-arm64/index.js b/template/node-arm64/index.js index c5ee0b752..1ad234276 100644 --- a/template/node-arm64/index.js +++ b/template/node-arm64/index.js @@ -15,7 +15,7 @@ getStdin().then(val => { if(isArray(res) || isObject(res)) { console.log(JSON.stringify(res)); } else { - console.log(res); + process.stdout.write(res); } }); }).catch(e => { diff --git a/template/node/index.js b/template/node/index.js index c5ee0b752..1ad234276 100644 --- a/template/node/index.js +++ b/template/node/index.js @@ -15,7 +15,7 @@ getStdin().then(val => { if(isArray(res) || isObject(res)) { console.log(JSON.stringify(res)); } else { - console.log(res); + process.stdout.write(res); } }); }).catch(e => {