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

1.0.4 • Public • Published



light spinner

This is a no-dependencies minimal cli spinner, only 1kb.

npm

Install

$ npm i light-spinner --save

Usage

import Spin from 'light-spinner';
const spin = new Spin({
  text: 'test',
});
spin.start();

// change text
spin.text = 'test 2';

spin.stop();

Options

option type desc default
text string console text empty string
timeout number the time of changing to next frame 100(ms)
spinners string[] frame list ['⠋', '⠙', '⠹', '⠼', '⠴', '⠦', '⠧', '⠏']

MIT LICENSE

Package Sidebar

Install

npm i light-spinner

Weekly Downloads

791

Version

1.0.4

License

MIT

Unpacked Size

5.34 kB

Total Files

7

Last publish

Collaborators

  • echosoar