Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

spinnies

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

spinnies

Create and manage multiple spinners in command-line interface programs

  • 0.5.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
119K
increased by1.03%
Maintainers
1
Weekly downloads
 
Created

What is spinnies?

The 'spinnies' npm package is a utility for managing multiple CLI spinners. It allows you to create, update, and stop multiple spinners simultaneously, which is useful for providing visual feedback in command-line applications.

What are spinnies's main functionalities?

Creating and Adding Spinners

This feature allows you to create and add a new spinner with a specific text. The spinner can be identified by a unique key, in this case, 'spinner1'.

const Spinnies = require('spinnies');
const spinnies = new Spinnies();
spinnies.add('spinner1', { text: 'Loading...' });

Updating Spinners

This feature allows you to update the text and status of an existing spinner. The spinner is identified by its key, and you can change its text and status.

spinnies.update('spinner1', { text: 'Still loading...', status: 'spinning' });

Succeeding and Failing Spinners

This feature allows you to mark a spinner as succeeded or failed. You can provide a final text message to indicate the outcome.

spinnies.succeed('spinner1', { text: 'Loaded successfully!' });
spinnies.fail('spinner2', { text: 'Failed to load.' });

Removing Spinners

This feature allows you to remove a spinner from the list of active spinners. The spinner is identified by its key.

spinnies.remove('spinner1');

Other packages similar to spinnies

Keywords

FAQs

Package last updated on 13 Dec 2019

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc