multi-progress
Multiple progress bars based on the "progress" package
Last updated 9 years ago by pitaj .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ npm install multi-progress 
SYNC missed versions from official npm registry.

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:

Current Tags

  • 4.0.0                                ...           latest (4 years ago)

4 Versions

  • 4.0.0                                ...           4 years ago
  • 3.0.0                                ...           4 years ago
  • 2.0.0                                ...           8 years ago
  • 1.0.0                                ...           9 years ago
Maintainers (1)
Downloads
Total 4
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (1)
Dev Dependencies (0)
None

© 2010 - cnpmjs.org x YWFE | Home | YWFE