
Security News
gem.coop Tests Dependency Cooldowns as Package Ecosystems Move to Slow Down Attacks
gem.coop is testing registry-level dependency cooldowns to limit exposure during the brief window when malicious gems are most likely to spread.
bare-spinner
Advanced tools
Tiny terminal spinner
Forked from yocto-spinner
SIGINT, SIGTERM)npm install bare-spinner
import bareSpinner from 'bare-spinner';
const spinner = bareSpinner({text: 'Loading…'}).start();
setTimeout(() => {
spinner.success('Success!');
}, 2000);
Creates a new spinner instance.
Type: object
Type: string
Default: ''
The text to display next to the spinner.
Type: object
Default: 
Customize the spinner animation with a custom set of frames and interval.
{
frames: ['-', '\\', '|', '/'],
interval: 100,
}
Pass in any spinner from cli-spinners.
Type: string
Default: 'cyan'
Values: 'black' | 'red' | 'green' | 'yellow' | 'blue' | 'magenta' | 'cyan' | 'white' | 'gray'
The color of the spinner.
Type: stream.Writable
Default: process.stderr
The stream to which the spinner is written.
Starts the spinner.
Returns the instance.
Optionally, updates the text:
spinner.start('Loading…');
Stops the spinner.
Returns the instance.
Optionally displays a final message.
spinner.stop('Stopped.');
Stops the spinner and displays a success symbol with the message.
Returns the instance.
spinner.success('Success!');
Stops the spinner and displays an error symbol with the message.
Returns the instance.
spinner.error('Error!');
Stops the spinner and displays a warning symbol with the message.
Returns the instance.
spinner.warning('Warning!');
Clears the spinner.
Returns the instance.
Stops the spinner and displays an info symbol with the message.
Returns the instance.
spinner.info('Info.');
Change the text displayed next to the spinner.
spinner.text = 'New text';
Change the spinner color.
Returns whether the spinner is currently spinning.
Use yoctocolors:
import bareSpinner from 'bare-spinner';
import {red} from 'yoctocolors';
const spinner = bareSpinner({text: `Loading ${red('unicorns')}`}).start();
JavaScript is single-threaded, so any synchronous operations will block the spinner's animation. To avoid this, prefer using asynchronous operations.
FAQs
Tiny terminal spinner that plays with Bears
The npm package bare-spinner receives a total of 1 weekly downloads. As such, bare-spinner popularity was classified as not popular.
We found that bare-spinner demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
gem.coop is testing registry-level dependency cooldowns to limit exposure during the brief window when malicious gems are most likely to spread.

Security News
Following multiple malicious extension incidents, Open VSX outlines new safeguards designed to catch risky uploads earlier.

Research
/Security News
Threat actors compromised four oorzc Open VSX extensions with more than 22,000 downloads, pushing malicious versions that install a staged loader, evade Russian-locale systems, pull C2 from Solana memos, and steal macOS credentials and wallets.