From 0e104db4f4a97f8ffc6a753200c9854d98e3cc58 Mon Sep 17 00:00:00 2001 From: Paul Hatcherian <1835615+PaulHatch@users.noreply.github.com> Date: Thu, 5 Dec 2019 20:53:39 -0500 Subject: [PATCH] Run exec silently --- index.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/index.js b/index.js index 93525f8..5223994 100644 --- a/index.js +++ b/index.js @@ -4,9 +4,10 @@ const eol = require('os').EOL; const cmd = async (command, ...args) => { let output = ''; - const options = {}; + const options = { + silent: true + }; options.listeners = { - silent: true, stdout: (data) => { output += data.toString(); } }; await exec.exec(command, args, options)