We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Code Snippet
const cliProgress = require("cli-progress"); const ProgressBar = cliProgress.MultiBar; const multi = new ProgressBar({ format: "Progress |" + "{bar}" + "| {percentage}% || {value}/{total} Chunks || Speed: {speed} || ETA: {eta}s", hideCursor: true, barCompleteChar: '\u2588', barIncompleteChar: '\u2591', clearOnComplete: true, stopOnComplete: true, forceRedraw: true }); const bar1 = multi.create(100, 0); const bar2 = multi.create(100, 0) let i = 0; const interval = setInterval(() => { // Simulate some process i++; // Print logs multi.log(`Log message ${i} \n`); // Update progress bar bar1.update(i); bar2.update(i); if (i === 100) { clearInterval(interval); multi.stop(); console.log("All items processed!"); } }, 10);
Output
Expected
The logs should be clean with progress bar cleanly appearing at the bottom
please let me know If there is a way to mitigate this issue
The text was updated successfully, but these errors were encountered:
I think you want this module:
https://www.npmjs.com/package/log-update
Sorry, something went wrong.
No branches or pull requests
Code Snippet
Output
Expected
The logs should be clean with progress bar cleanly appearing at the bottom
please let me know If there is a way to mitigate this issue
The text was updated successfully, but these errors were encountered: