0.6.7 • Published 3 years ago

cli-infinity-progress v0.6.7

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

A infinity progress bar for terminal

cli-infinity-progress

Also customizable

You can add header, footer and change every time cli-infinity-progress-3

Install

npm install cli-infinity-progress

Usage

const CLIInfinityProgress = require('cli-infinity-progress');

const progress = new CLIInfinityProgress();
progress.start();

Methods:

NameReturnDesc
.setBarColor(colors.green)thisSet bar color const colors = require('cli-infinity-progress/colors');
.setBackgroundColor(colors.white)thisSet background color const colors = require('cli-infinity-progress/colors');
.setHeader('Header')thisSet header on top of progress. you can update every time
.setFooter('Footer')thisSet footer on bottom of progress. you can update every time
.setBarChar('🚕')thisSet bar char
.setBackgroundChar('-')thisSet background char
.setDirectionRightToLeft()thisProgress start from right default is left
.setDirectionLeftToRight()thisProgress start from left
.setSize(30)thisSet progress size default is 60
.setBarSize(5)thisSet bar size default is 20
.setRefreshRate(80)thisSet refresh rate default is (1000 / 25)ms
.start()thisStart progress
.remove()thisRemove progress from terminal
.stop()thisStop progress on terminal
.pause()thisPause progress on terminal
.resume()thisResume progress on terminal

You can call all methods as chaining ex:

const CLIInfinityProgress = require('cli-infinity-progress');
const colors = require('cli-infinity-progress/colors');

progress
  .setBackgroundColor(colors.yellow)
  .setHeader('Loading ...')
  .setFooter('\nPlease be patient.')
  .setBarChar('🚕')
  .setBackgroundChar('_')
  .setDirectionRightToLeft()
  .setSize(32)
  .setBarSize(1)
  .setRefreshRate(100)
  .start();

setTimeout(() => progress.setFooter('\nWoo, Cab is coming.'), 3000);

Result:

cli-infinity-progress-5

Roadmap

0.6.7

3 years ago

0.6.6

3 years ago

0.6.3

3 years ago

0.6.2

3 years ago

0.6.5

3 years ago

0.6.4

3 years ago

0.5.0

3 years ago

0.6.1

3 years ago

0.6.0

3 years ago

0.5.1

3 years ago

0.1.0

3 years ago

0.3.0

3 years ago

0.1.2

3 years ago

0.2.0

3 years ago

0.1.1

3 years ago

0.3.6

3 years ago

0.3.5

3 years ago

0.3.8

3 years ago

0.3.7

3 years ago

0.4.1

3 years ago

0.3.2

3 years ago

0.1.4

3 years ago

0.4.0

3 years ago

0.3.1

3 years ago

0.1.3

3 years ago

0.3.4

3 years ago

0.1.6

3 years ago

0.3.3

3 years ago

0.1.5

3 years ago

0.0.2

3 years ago

0.0.1

3 years ago

0.0.1-1

3 years ago

0.0.1-0

3 years ago