$ gnpm install elegant-spinner
Elegant spinner for interactive CLI apps
You probably want ora
instead, which includes this spinner and handles the animation for you.
$ npm install elegant-spinner
import elegantSpinner from 'elegant-spinner';
import logUpdate from 'log-update';
const frame = elegantSpinner();
setInterval(() => {
logUpdate(frame());
}, 50);
Copyright 2013 - present © cnpmjs.org | Home |