Socket
Socket
Sign inDemoInstall

multi-progress

Package Overview
Dependencies
1
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    multi-progress

Multiple progress bars based on the "progress" package


Version published
Weekly downloads
30K
increased by4.32%
Maintainers
1
Install size
6.77 kB
Created
Weekly downloads
 

Readme

Source

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:

  • rslashimg

Keywords

FAQs

Last updated on 15 Oct 2020

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc