A nice wrapper around TJ Holowaychuck's node-progress with chaining, domains, and steps
- Install Node.js
npm install --save progressbar
var ProgressBar = require('progressbar').ProgressBar;
var progress = new ProgressBar();
progress
.step('the task you are currently performing')
.setTotal(5)
.setTick(1)
.setTick(2)
.setTick(3)
.addTick()
.addTick();
step(step)
- set the step, resets the total and the ticksetTick(ticks)
- set the completed ticksaddTick()
- add 1 to the completed ticksgetTick()
- get the completed tickssetTotal(total)
- set the total ticksaddTotal()
- add 1 to the total ticksgetTotal()
- get the total ticksfinish()
- finish manually, will destroy the progress bar
You can discover the history inside the History.md file
Licensed under the incredibly permissive MIT License
Copyright © 2013+ Bevry Pty Ltd