Skip to content

Commit

Permalink
use process.stdout references (of course)
Browse files Browse the repository at this point in the history
  • Loading branch information
joemaller committed Mar 4, 2024
1 parent 0fdd139 commit 13bba9a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions bin/zip.js
Original file line number Diff line number Diff line change
Expand Up @@ -177,9 +177,9 @@ function foundReporter(file) {

if (fileCount % 25 == 0) {
// process.stdout.clearLine();
clearLine(stdout);
clearLine(process.stdout);
// process.stdout.cursorTo(0);
cursorTo(stdout, 0);
cursorTo(process.stdout, 0);
process.stdout.write(outString);

}
Expand All @@ -193,10 +193,10 @@ function finishReporter() {
const savedPercent = ((1 - outBytes / inBytes) * 100).toFixed(2);

// process.stdout.clearLine();
clearLine(stdout);
clearLine(process.stdout);

// process.stdout.cursorTo(0);
cursorTo(stdout, 0);
cursorTo(process.stdout, 0);

console.log(
"🔍 ",
Expand Down

0 comments on commit 13bba9a

Please sign in to comment.