Installations
npm install cli-progress-bar
Developer
gillesdemey
Developer Guide
Module System
CommonJS
Min. Node Version
Typescript Support
No
Node Version
6.5.0
NPM Version
3.10.3
Statistics
5 Stars
16 Commits
1 Forks
3 Watching
1 Branches
2 Contributors
Updated on 02 Feb 2023
Languages
JavaScript (100%)
Total Downloads
Cumulative downloads
Total Downloads
224,722
Last day
17.6%
20
Compared to previous day
Last week
0%
176
Compared to previous week
Last month
-36.1%
802
Compared to previous month
Last year
21.3%
13,286
Compared to previous year
Daily Downloads
Weekly Downloads
Monthly Downloads
Yearly Downloads
Usage
A simple CLI progress bar, inspired by Gauge.
1var ProgressBar = require('cli-progress-bar') 2 3var bar = new ProgressBar() 4 5bar.show("Foo", 0.75) 6 7bar.pulse("bar") 8 9bar.hide()
API
var bar = new ProgressBar([options])
- options – (optional) An option object.
The options object can have the following properties, all of which are optional:
- theme: defaults to
ProgressBar.themes.unicode
if the terminal supports unicode according to [cli-character-set], otherwise it defaults toProgressBar.themes.ascii
orProgressBar.themes.cp437
for Windows. - width: sets a desired width (in columns) of the entire progress indicator, not just the bar. The progress bar itself will take up about half of the column width. Additional text may overflow the desired with. By default it uses the number of available columns of the TTY.
bar.show([name, [completed]])
- name – (optional) The name of the current thing contributing to progress. Defaults to the last value used, or "".
- completed – (optional) The portion completed as a value between 0 and 1. Defaults to the last value used, or 0.
bar.hide()
Removes the progress bar from the terminal.
bar.pulse([name])
- name – (optional) The specific thing that triggered this pulse
Spins the spinner in the progress bar to show output. If name is included then
it will be combined with the last name passed to bar.show()
using the
subsection property of the theme (typically a right facing arrow).
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
0 existing vulnerabilities detected
Reason
license file detected
Details
- Info: project has a license file: LICENSE:0
- Info: FSF or OSI recognized license: ISC License: LICENSE:0
Reason
Found 2/15 approved changesets -- score normalized to 1
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
- Warn: no security policy file detected
- Warn: no security file to analyze
- Warn: no security file to analyze
- Warn: no security file to analyze
Reason
project is not fuzzed
Details
- Warn: no fuzzer integrations found
Reason
branch protection not enabled on development/release branches
Details
- Warn: branch protection not enabled for branch 'master'
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
- Warn: 0 commits out of 3 are checked with a SAST tool
Score
3.2
/10
Last Scanned on 2024-11-25
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More