1.0.4 • Published 3 years ago

light-spinner v1.0.4

Weekly downloads
1,453
License
MIT
Repository
github
Last release
3 years ago

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

optiontypedescdefault
textstringconsole textempty string
timeoutnumberthe time of changing to next frame100(ms)
spinnersstring[]frame list['⠋', '⠙', '⠹', '⠼', '⠴', '⠦', '⠧', '⠏']

MIT LICENSE