JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 47
  • Score
    100M100P100Q62629F
  • License MIT

Use infinity progress-bar for command-line/terminal

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

cli-infinity-progress

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