-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
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
add compatibltiy with console log #3
Comments
I have not touched this project for a long time, could you provide code sample so i can work with it. |
thank you for fast replay; here you can test it with this script: var Progress = require("ts-progress");
var total = 10;
var progress = Progress.create({ total: total });
function sleep(millis) {
return new Promise((resolve) => setTimeout(resolve, millis));
}
async function test() {
console.log("hi this is a message");
await sleep(1000);
}
for (var i = 0; i < 10; i++) {
test();
progress.update();
} |
Thanks, I will take a look but cannot guarantee quick results. |
Unfortunately it is not possible to make it compatible with console.log. The component uses |
thank you @agracio I got you, there's another way create your own function to log messages like at python when using the |
hi, first thank you for making my life easier 😁❤️,
second this is just a small request if it's possible to add a compatibility with console log messages so that the progress bar be at the bottom all the time and messages being displayed above of it,
because that doesn't look good at all:
The text was updated successfully, but these errors were encountered: