multispinner alternatives and similar modules
Based on the "Command Line Utilities" category.
Alternatively, view multispinner alternatives based on common mentions on social networks and blogs.
-
nvm
Node Version Manager - POSIX-compliant bash script to manage multiple active node.js versions -
Inquirer.js
A collection of common interactive command line user interfaces. -
KeyboardJS
A JavaScript library for binding keyboard combos without the pain of key codes and key combo conflicts. -
omelette
Omelette is a simple, template based autocompletion tool for Node and Deno projects with super easy API. (For Bash, Zsh and Fish) -
log-update
Log by overwriting the previous output in the terminal. Useful for rendering progress bars, animations, etc. -
configstore
Easily load and persist config without having to think about where and how -
insight
Node.js module to help you understand how your tool is being used by anonymously reporting usage metrics to Google Analytics -
columnify
Create text-based columns suitable for console output. Supports cell wrapping. -
Javascript library for 2d geometry
Javascript library for 2d geometry -
string-width
Get the visual width of a string - the number of columns required to display it -
loud-rejection
Make unhandled promise rejections fail loudly instead of the default silent fail -
sudo-block
Block users from running your app with root permissions -
googleauth
Create and load persistent Google authentication tokens for command-line apps -
licenseye
Node.js CLI tool to visualize an aggregate list of your dependencies' licenses -
cli-columns
Columnated lists for the CLI. Unicode and ANSI safe. -
cron-to-quartz
Node.js library to convert unix or linux CRON syntax to Quartz Scheduler
Appwrite - The Open Source Firebase alternative introduces iOS support
* Code Quality Rankings and insights are calculated and provided by Lumnify.
They vary from L1 to L5 with "L5" being the highest.
Do you think we are missing an alternative of multispinner or a related project?
README
About | Installation | API | Examples | Attribution | License
About
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.
Installation
Install and require as a standard Node module.
Install
$ npm install --save multispinner
Require
var Multispinner = require('multispinner')
API
Full documentation available here.
Examples
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
.
Attribution
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.
License
*Note that all licence references and agreements mentioned in the multispinner README section above
are relevant to that project's source code only.