cli-spinner

A simple spinner

npm install cli-spinner
2 downloads in the last day
12 downloads in the last week
32 downloads in the last month

node-spinner

A simple spinner for node cli.

Installation

This package is available on [npm][3] as: cli-spinner

npm install cli-spinner

Usage

Syntax: var obj = new Spinner ( [title] )

Creates a new spinner object with the default options.

  • obj.start() - starts the spinner.
  • obj.stop() - stops the spinner.
  • obj.setSpinnerString(spinnerString) - sets the spinner string the specific instance.
  • Spinner.setDefaultSpinnerString(spinnerString) - sets the default spinner string for all newly created instances.

Example

var Spinner = require('cli-spinner').Spinner;

var spinner = new Spinner('processing..');
spinner.setSpinnerString('|/-\\');
spinner.start();

NPM version

npm loves you