Elegant spinner for interactive CLI apps
You probably want ora
instead, which includes this spinner and handles the animation for you.
$ npm install --save elegant-spinner
var elegantSpinner = require('elegant-spinner');
var logUpdate = require('log-update');
var frame = elegantSpinner();
setInterval(function () {
logUpdate(frame());
}, 50);
- log-update - Log by overwriting the previous output in the terminal. Useful for rendering progress bars, animations, etc.
MIT © Sindre Sorhus