1.0.5 • Published 6 years ago

ys-spinner v1.0.5

Weekly downloads
29
License
-
Repository
github
Last release
6 years ago

ys-spinner

nodejs loading spinner for ys framework

Install

npm i ys-spinner --save

Usage

const ConsoleSpinner = require('ys-spinner');
const arr = ['log', 'info', 'error', 'success', 'warn', 'debug', 'test'];
const hk = new ConsoleSpinner('Master');
let i = 0;
hk.start();
const timer = setInterval(() => {
  if (i > 10) {
    hk.stop();
    return clearInterval(timer);
  }
  const j = i % arr.length;
  hk[arr[j]]('use count:', i++);
}, 1000); 

License

It is MIT licensed.

1.0.5

6 years ago

1.0.4

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago