Progress
progress
Flexible ascii progress bar.
Install it: npm install progress
Example usage:
- Create a ProgressBar.
- Give it a format string.
- Give the total, telling the progress bar when to stop!
- Finally do tick() appropriately.
1 2 3 4 5 6 7 8 9 10 | |
Options
These are keys in the options object you can pass to the progress bar along with
total as seen in the example above.
totaltotal number of ticks to completewidththe displayed width of the progress bar defaulting to totalstreamthe output stream defaulting to stderrcompletecompletion character defaulting to "="incompleteincomplete character defaulting to "-"clearoption to clear the bar on completion defaulting to falsecallbackoptional function to call when the progress bar completes
Tokens
These are tokens you can use in the format of your progress bar.
:barthe progress bar itself:currentcurrent tick number:totaltotal ticks:elapsedtime elapsed in seconds:percentcompletion percentage:etaestimated completion time in seconds
Do checkout their examples folder.
GIF FTW!

Thanks to TJ and rest of the maintainers for node-progress!