JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 314509
  • Score
    100M100P100Q166486F
  • License MIT

A simple spinner

Package Exports

  • cli-spinner

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (cli-spinner) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

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