Gathering detailed insights and metrics for spinnies
Gathering detailed insights and metrics for spinnies
Gathering detailed insights and metrics for spinnies
Gathering detailed insights and metrics for spinnies
Node.js module to create and manage multiple spinners in command-line interface programs
npm install spinnies
Typescript
Module System
Node Version
NPM Version
JavaScript (100%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
MIT License
153 Stars
74 Commits
34 Forks
5 Watchers
5 Branches
6 Contributors
Updated on Jun 25, 2025
Latest Version
0.5.1
Package Id
spinnies@0.5.1
Size
10.09 kB
NPM Version
6.9.0
Node Version
10.16.0
Published on
Dec 13, 2019
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
3
Node.js module to create and manage multiple spinners in command-line interface programs
$ npm i spinnies
1const spinnies = new Spinnies(); 2 3spinnies.add('spinner-1', { text: 'I am a spinner' }); 4spinnies.add('spinner-2', { text: 'I am another spinner' }); 5 6setTimeout(() => { 7 spinnies.succeed('spinner-1', { text: 'Success!' }); 8 spinnies.fail('spinner-2', { text: 'Fail :(' }); 9}, 2000);
This library follows a non-error-throwing philosophy. If you provide an invalid option or an invalid value for a valid option it will be ignored.
Parameters
object
:
color - string
: Any valid chalk color. The default value is white
.
succeedColor - string
: Any valid chalk color. The default value is green
.
failColor - string
: Any valid chalk color. The default value is red
.
spinnerColor - string
: Any valid chalk color. The default value is greenBright
.
succeedPrefix - string
: The default value is ✓.
failPrefix- string
: The default value is ✖.
spinner- object
:
number
string[]
You can see the already provided spinner here.
disableSpins - boolean
: Disable spins (will still print raw messages).
Note: If you are working in any win32
platform, the default spin animation will be overriden. You can get rid of this defining a different spinner animation manually, or by using the integrated VSCode terminal or Windows Terminal.
Example:
1const spinner = { interval: 80, frames: ['????', '????', '????', '????'] } 2const spinnies = new Spinnies({ color: 'blue', succeedColor: 'green', spinner });
Adds a new spinner with the given name.
Parameters:
string
: spinner reference name.object
:
string
: Optional text to show in the spinner. If none is provided, the name
field will be shown.number
: Optional, indent the spinner with the given number of spaces.string
: Initial status of the spinner. Valid statuses are: succeed
, fail
, spinning
, non-spinnable
and stopped
.string
: Any valid chalk color.string
: Any valid chalk color.string
: Any valid chalk color.Return value: Returns the spinner's options.
Example:
1const spinnies = new Spinnies(); 2spinnies.add('spinner-1'); 3spinnies.add('another-spinner', { text: 'Hello, I am a spinner!', color: 'greenBright' }); 4
Picks a spinner.
Parameters:
string
: spinner reference name.Return value: Returns the spinner's options.
Removes a spinner.
Parameters:
string
: spinner reference name.Return value: Returns the spinner's options.
Updates the spinner with name name
with the provided options.
Parameters:
string
: spinner reference name.object
:
string
: Optional text to show in the spinner. If none is provided, the name
field will be shown.string
: New status of the spinner. Valid statuses are: succeed
, fail
, spinning
, non-spinnable
and stopped
.string
: Any valid chalk color.string
: Any valid chalk color.string
: Any valid chalk color.Return value: Returns the spinner's options.
Example:
1const spinnies = new Spinnies(); 2spinnies.add('spinner-1', { text: 'Hello! I am the initial text', color: 'green' }); 3// some code 4spinnies.update('spinner-1', { text: 'Hello, I am an updated text!', color: 'blue' }); 5
Sets the specified spinner status as succeed
.
Parameters:
string
: spinner reference name.object
:
string
: Optional text to show in the spinner. If none is provided, the name
field will be shown.string
: Any valid chalk color.Return value: Returns the spinner's options.
Example:
1const spinnies = new Spinnies(); 2spinnies.add('spinner-1', { text: 'Hello! I am the initial text', color: 'green' }); 3// some code 4spinnies.succeed('spinner-1', { text: 'Success!', successColor: 'greenBright' }); 5
Sets the specified spinner status as fail
.
Parameters:
string
: spinner reference name.object
:
string
: Optional text to show in the spinner. If none is provided, the name
field will be shown.string
: Any valid chalk color.Return value: Returns the spinner's options.
Example:
1const spinnies = new Spinnies(); 2spinnies.add('spinner-1', { text: 'Hello! I am the initial text', color: 'green' }); 3// some code 4spinnies.fail('spinner-1', { text: 'I failed', failColor: 'redBright' }); 5
Stops the spinners and sets the non-succeeded and non-failed ones to the provided status, which can be succeed
, fail
or stopped
. You can see an example here.
Return value: returns false
if all spinners have succeeded, failed or have been stopped.
Star it, fork it, improve it, PR it! :raised_hands:.
Thanks to chalk for helping making this lib colorful :rainbow: and to ora which was a great inspiration :unicorn:.
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
Found 4/26 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
project is not fuzzed
Details
Reason
security policy file not detected
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Reason
12 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-07-07
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