diff --git a/lib/helpers.js b/lib/helpers.js index f23c45b..25e0117 100644 --- a/lib/helpers.js +++ b/lib/helpers.js @@ -1,7 +1,11 @@ const progress = (str) => { - process.stdout.clearLine() - process.stdout.cursorTo(0) - process.stdout.write(str) + if (process.stdout.isTTY) { + process.stdout.clearLine() + process.stdout.cursorTo(0) + process.stdout.write(str) + } else { + console.log(str) + } } const pad = (str, max) => {