Gathering detailed insights and metrics for @motrix/multispinner
Gathering detailed insights and metrics for @motrix/multispinner
Gathering detailed insights and metrics for @motrix/multispinner
Gathering detailed insights and metrics for @motrix/multispinner
Multiple, simultaneous, individually controllable spinners for concurrent tasks in Node.js CLI programs
npm install @motrix/multispinner
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
158 Commits
4 Branches
1 Contributors
Updated on Dec 28, 2020
Latest Version
0.2.4
Package Id
@motrix/multispinner@0.2.4
Unpacked Size
74.59 kB
Size
28.34 kB
File Count
23
NPM Version
9.5.0
Node Version
18.15.0
Published on
Apr 05, 2023
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
About | Installation | API | Examples | Attribution | License
node-multispinner
is a Node.js module for managing multiple progress indicators (spinners) in CLI apps.
This module is especially useful for apps that benefit from simultaneous async task execution (e.g. with Promise.all[]
), as it enables live updating individual spinners, in any order, while other spinners continue spinning.
Node.js 4.0 or newer is required.
Install and require as a standard Node module.
Install
$ npm install --save multispinner
Require
1 var Multispinner = require('multispinner')
Full documentation available here.
The examples discussed below can be found here. Run them in a terminal with node:
$ node <example>
Example: events.js
Creates four spinners from an array, then completes them in succession with staggered setTimeout
functions.
Responds to the success
and err
completion events.
Example: customAnimation.js
Creates a custom spinner animation with the frames
option.
Example: randomInfiniteLoop.js
Creates three to seven spinners with random lorem text and completes them randomly in less than five seconds in an infinite loop.
Stubs out the logUpdate.done()
function to overwrite the previous output with every loop.
It's kind of mesmerising.
Example: cli-with-promises
A CLI application that reads URLs and parses HTML into text to display in a terminal.
Uses meow for CLI support, html-to-text for parsing, and axios for Promise-based HTTP requests.
Creates spinners for each URL, and uses Promise.all()
to execute the GET requests in parallel.
There are certainly edge cases that this example doesn't account for; it is not meant to be a "real" application.
Despite that, the code should be illustrative of how node-multispinner
could potentially be used in a real application.
This example is unique in that it requires modules not used in node-multispinner
.
Before running it, cd
into its directory and install the additional requirements from its package.json
with npm install
.
Thanks to sindresorhus for his log-update module, which was a major inspiration for and is used extensively in this module. Log-update is MIT licensed.
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
0 existing vulnerabilities detected
Reason
license file detected
Details
Reason
Found 0/30 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
no SAST tool detected
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
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