Package Exports
- cli-infinity-progress
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (cli-infinity-progress) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
A infinity progress bar for terminal
Install
npm install cli-infinity-progress
Usage
const CLIInfinityProgress = require('cli-infinity-progress');
const progress = new CLIInfinityProgress();
progress.start();
Methods:
Name | Return | Desc |
---|---|---|
progress.setSize(60) | void | Set progress size default is 60 |
progress.setBarSize(20) | void | Set bar size default is 20 |
progress.setRefreshRate(1000 / 25) | void | Set refresh rate default is 1000 / 25 |
progress.start() | void | Start progress |
progress.remove() | void | Remove progress from terminal |
progress.stop() | void | Stop progress from terminal |
Road map:
- add prefix and postfix on progress
- set prefix and postfix color
- set bar color
- add an event when indicator arrived to end