elegant-spinner

Elegant spinner for interactive CLI apps

MIT License

Downloads
7.6M
Stars
227
Committers
4

elegant-spinner

Elegant spinner for interactive CLI apps

You probably want ora instead, which includes this spinner and handles the animation for you.

Install

$ npm install elegant-spinner

Usage

import elegantSpinner from 'elegant-spinner';
import logUpdate from 'log-update';

const frame = elegantSpinner();

setInterval(() => {
	logUpdate(frame());
}, 50);

Related

  • log-update - Log by overwriting the previous output in the terminal. Useful for rendering progress bars, animations, etc.