multibar
Features:
- Simple and robust
- Multiple progress bar at once
- Supports ANSI coloring in labels (e.g. colored with
chalk
)
Install
npm install multibar
Usage
var chalk = ;var multibar = ; { var bar = ; var count = 0; var timer = ;} for var i = 0; i < 3; i++ ;
Example in action:
API
multibar(prelude, message, options);
All agruments are optional. Returns a bar instance with method:
-
update(progress, message)
Update bar progress and message. Parameters:
progress
should be a number in range [0..1]message
– any string to output on right side of bar
-
done(message)
Finalize bar progress (hide progress bar, prelude and message are left).
message
any string
Options:
-
complete
Type:
String
Default: depends on platform andchalk
enabledCharacter for fill a completion progress.
-
incomplete
Type:
String
Default: depends on platform andchalk
enabledCharacter for fill rest of progress.
License
MIT