Home
Docs
GitHub
Pricing
Blog
Log In

Run Sandworm Audit for your App

Get started
Generated on Jun 2, 2024 via pnpm

cli-progress 3.12.0

easy to use progress-bar for command-line/terminal applications
Package summary
Share
0
issues
1
license
6
MIT
Package created
13 Dec 2015
Version published
19 Feb 2023
Maintainers
1
Total deps
6
Direct deps
1
License
MIT

Issues

0
This package has no issues

Licenses

MIT License

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
sublicense
private-use
Cannot
hold-liable
Must
include-copyright
include-license
6 Packages, Including:
ansi-regex@5.0.1
cli-progress@3.12.0
emoji-regex@8.0.0
is-fullwidth-code-point@3.0.0
string-width@4.2.3
strip-ansi@6.0.1
Disclaimer

This deed highlights only some of the key features and terms of the actual license. It is not a license and has no legal value. You should carefully review all of the terms and conditions of the actual license before using the licensed material.

Sandworm is not a law firm and does not provide legal services. Distributing, displaying, or linking to this deed or the license that it summarizes does not create a lawyer-client or any other relationship.

Direct Dependencies

1
All Dependencies CSV
β“˜ This is a list of cli-progress 's direct dependencies. Data on all dependencies, including transitive ones, is available via CSV download.
NameVersionSizeLicenseTypeVulnerabilities
string-width4.2.32.33 kBMIT
prod

Visualizations

Frequently Asked Questions

What does cli-progress do?

cli-progress is a useful npm package offering an easy-to-use progress bar for command-line or terminal applications. It has several useful features such as a fully customizable output format using different placeholders, single and multi progress-bar modes, ETA calculation based on elapsed time, support for both TTY and NOTTY mode, asynchronous and synchronous task handling, and many more.

How do you use cli-progress?

To use cli-progress in your JavaScript code, you first need to install it using either yarn or npm.

$ yarn add cli-progress
$ npm install cli-progress --save

After the installation, import the package into your JavaScript file and create a new instance of the progress bar. You can start, update, increment, set total value for, or stop the progress bar as needed. Here's a quick example:

const cliProgress = require('cli-progress');

// create a new progress bar instance and use shades_classic theme
const bar1 = new cliProgress.SingleBar({}, cliProgress.Presets.shades_classic);

// start the progress bar with a total value of 200 and start value of 0
bar1.start(200, 0);

// update progress
bar1.update(100);

// stop the progress bar
bar1.stop();

The constructor new cliProgress.SingleBar(options:object [, preset:object]); is used to initialize a new progress bar. You can use the start, update, increment, and stop methods to control the behavior of the progress bar.

Where are the cli-progress docs?

cli-progress documentation can be found right on the GitHub repository at https://github.com/npkgz/cli-progress.git. The readme file in the repository provides a detailed explanation of the package, along with several examples demonstrating various uses of the CLI-progress. Moreover, there is a specific section for events in the 'docs' directory for more detailed information and examples.