tiny-spinner
TypeScript icon, indicating that this package has built-in type declarations

2.0.3 • Public • Published

Demo

Tiny Spinner

A simple, yet beautiful, CLI spinner.

Install

npm install --save tiny-spinner

Usage

import Spinner from 'tiny-spinner';

// Create spinner

const spinner = new Spinner ();

// Start spinner with initial message

spinner.start ( 'Doing something' );

// Update message

spinner.update ( 'Still doing something' );

// Exit with a warning message

spinner.warning ( 'Some warning message' );

// Exit with an error message

spinner.error ( 'Some error message' );

// Exit with a success message

spinner.success ( 'Some success message' );

// Exit with a custom message (no prefix symbol)

spinner.stop ( 'Some stop message' );

// Exit without a message

spinner.stop ();

License

MIT © Fabio Spampinato

Package Sidebar

Install

npm i tiny-spinner

Weekly Downloads

27,504

Version

2.0.3

License

none

Unpacked Size

266 kB

Total Files

16

Last publish

Collaborators

  • fabiospampinato