Skip to content

yskit/ys-spinner

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

nodejs loading spinner for ys framework

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published