multi-progress
DefinitelyTyped icon, indicating that this package has TypeScript declarations provided by the separate @types/multi-progress package

4.0.0 • Public • Published

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

multi-progress@4 requires progress@2 as a peer dependency. If you don't already have progress@2 as a dependency, add it like so: npm install progress@2.

// require the library
var Multiprogress = require('multi-progress');
 
// spawn an instance with the optional stream to write to
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:

Package Sidebar

Install

npm i multi-progress

Weekly Downloads

29,032

Version

4.0.0

License

MIT

Unpacked Size

6.1 kB

Total Files

6

Last publish

Collaborators

  • pitaj