1.0.4 • Published 4 years ago
light-spinner v1.0.4
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 | ['⠋', '⠙', '⠹', '⠼', '⠴', '⠦', '⠧', '⠏'] |