Gathering detailed insights and metrics for loading-cli
Gathering detailed insights and metrics for loading-cli
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
94.1
Supply Chain
100
Quality
75.7
Maintenance
100
Vulnerability
100
License
JavaScript (100%)
Total Downloads
1,489,822
Last Day
391
Last Week
14,793
Last Month
64,255
Last Year
723,678
55 Stars
51 Commits
6 Forks
3 Watchers
2 Branches
2 Contributors
Updated on Feb 27, 2025
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
Published on
Nov 27, 2023
Cumulative downloads
Total Downloads
Last Day
6.3%
391
Compared to previous day
Last Week
-14.9%
14,793
Compared to previous week
Last Month
-8.2%
64,255
Compared to previous month
Last Year
73.3%
723,678
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
0 existing vulnerabilities detected
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
Found 0/27 approved changesets -- score normalized to 0
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
license file not detected
Details
Reason
project is not fuzzed
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Score
Last Scanned on 2025-06-23
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