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

simple-spinner

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

simple-spinner

A super simple spinner

  • 0.0.5
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

Supper Simple Spinner for Node.js

This is a supper simple spinner / activity indicator for Node.js. I've used it in a few console tools that I've written in Node.js, where I've wanted to show that there is activity and that the program isn't hung.

NPM

How Simple Is It?

So simple it only has 3 functions.

  • start([interval in ms], [options])
    • Obviously this starts the spinner. You can give it how quickly you want it to go through the sequence of characters. Defaults to 250ms.
    • Update (2015-07-24): start can now also take an options object with the following keys:
      • hideCursor (boolean, default: false): When true, hide the console cursor (uses TooTallNate/ansi.js)
      • doNotBlock (boolean, default: false): When true, unref the timer so it does not prevent the process from exiting.
  • stop()
    • I really shouldn't have to explain this one...
  • change_sequence(sequence)
    • Use this if you don't like the default spinning stick. Give it an array of strings like this [".", "o", "0", "@", "*"]

Keywords

FAQs

Package last updated on 27 Jul 2015

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