Gathering detailed insights and metrics for loading-cli
Gathering detailed insights and metrics for loading-cli
npm install loading-cli
Typescript
Module System
Node Version
NPM Version
89.8
Supply Chain
100
Quality
75.7
Maintenance
100
Vulnerability
100
License
JavaScript (100%)
Total Downloads
1,215,048
Last Day
2,342
Last Week
10,381
Last Month
53,857
Last Year
625,548
54 Stars
51 Commits
6 Forks
4 Watching
2 Branches
2 Contributors
Minified
Minified + Gzipped
Latest Version
1.1.2
Package Id
loading-cli@1.1.2
Unpacked Size
10.29 kB
Size
3.56 kB
File Count
6
NPM Version
9.8.1
Node Version
18.18.2
Publised On
27 Nov 2023
Cumulative downloads
Total Downloads
Last day
-12.6%
2,342
Compared to previous day
Last week
-26.1%
10,381
Compared to previous week
Last month
6.3%
53,857
Compared to previous month
Last year
76.9%
625,548
Compared to previous year
1
Terminal loading effect.
1$ npm install --save loading-cli
1const loading = require('loading-cli'); 2const load = loading("loading text!!").start() 3 4setTimeout(function(){ 5 load.color = 'yellow'; 6 load.text = ' Loading rainbows'; 7},2000) 8 9// stop 10setTimeout(function(){ 11 load.stop() 12},3000)
Custom text color colors-cli
1const color = require('colors-cli/toxic'); 2const loading = require('loading-cli'); 3 4const load = loading("loading text!!".blue).start(); 5// stop 6setTimeout(function(){ 7 load.stop() 8},3000)
1load({ 2 "text":"loading text!!", 3 "color":"yellow", 4 "interval":100, 5 "stream": process.stdout, 6 "frames":["◰", "◳", "◲", "◱"] 7})
Type: string Text to display after the spinner.
1loading("loading text!!")
Values:black
red
green
yellow
blue
magenta
cyan
white
gray
1["◰", "◳", "◲", "◱"] 2["◐", "◓", "◑", "◒"] 3[".", "o", "O", "°", "O", "o", "."] 4["⊶", "⊷"] 5["ဝ", "၀"] 6["←", "↖", "↑", "↗", "→", "↘", "↓", "↙"] 7["🕐 ", "🕑 ", "🕒 ", "🕓 ", "🕔 ", "🕕 ", "🕖 ", "🕗 ", "🕘 ", "🕙 ", "🕚 "]
Start the spinner. Returns the instance.
Stop and clear the spinner. Returns the instance.
Clear the spinner. Returns the instance.
Stop the spinner, change it to a green ✔
and persist the current text, or text if provided. Returns the instance. See the GIF below.
Stop the spinner, change it to a red ✖
and persist the current text, or text if provided. Returns the instance. See the GIF below.
Stop the spinner, change it to a yellow ⚠
and persist the current text, or text if provided. Returns the instance.
Stop the spinner, change it to a blue ℹ
and persist the current text, or text if provided. Returns the instance.
Manually render a new frame. Returns the instance.
Get a new frame.
1const loading = require('loading-cli'); 2const load = loading("loading text!!"); 3load.frame(["◰", "◳", "◲", "◱"]); 4load.start();
Change the text.
Change the spinner color.
As always, thanks to our amazing contributors!
Made with contributors.
Licensed under the MIT License.
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
no dangerous workflow patterns detected
Reason
packaging workflow detected
Details
Reason
0 existing vulnerabilities detected
Reason
detected GitHub workflow tokens with excessive permissions
Details
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
Found 0/27 approved changesets -- score normalized to 0
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
Reason
project is not fuzzed
Details
Reason
license file not detected
Details
Reason
security policy file not detected
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Score
Last Scanned on 2025-01-27
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