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
Here is two files
test.js
var ProgressBar = require('progress'); var bar = new ProgressBar(':bar', { total: 10 }); console.log('ProgressBar'); var timer = setInterval(function () { bar.tick(); if (bar.complete) { clearInterval(timer); } }, 100);
index.js
var spawn = require('child_process').spawn; var ls = spawn('node', ['./test.js']); ls.stdout.on('data', function(data) { console.log(data.toString()); });
If run $ node test.js , progress bar will be rendered, but if run $ node index.js — won't.
$ node test.js
$ node index.js
The text was updated successfully, but these errors were encountered:
By default this writes to the stderr stream. Did you try stderr instead of stdout?
stderr
stdout
Sorry, something went wrong.
Progress bar uses by default as strem the stderr, check here.
Can you try using in options the standard output?
var bar = new ProgressBar(':bar', { total: 10, stream: process.stdout });
No branches or pull requests
Here is two files
test.js
index.js
If run
$ node test.js
, progress bar will be rendered, but if run$ node index.js
— won't.The text was updated successfully, but these errors were encountered: