Skip to content
This repository has been archived by the owner on Sep 21, 2022. It is now read-only.

Multiple progress bars based on the "progress" package

License

Notifications You must be signed in to change notification settings

picnichealth/multi-progress

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

multi-progress

This module adds a layer on top of the API of progress that allows for multiple progress bars.

Usage

Install with npm: npm install multi-progress

// require the library
var Multiprogress = require("multi-progress");

// spawn an instance with the optional stream to write to
// use of `new` is optional
var multi = new Multiprogress(process.stderr);

// create a progress bar
var bar = multi.newBar('  downloading [:bar] :percent :etas', {
  complete: '=',
  incomplete: ' ',
  width: 30,
  total: size
});

// `bar` is an instance of ProgressBar
// Use the progressbar API with it

More detailed usage examples are available in the following projects:

About

Multiple progress bars based on the "progress" package

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%