nodejs loading spinner for ys framework
npm i ys-spinner --save
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);
It is MIT licensed.