elegant-spinner

Elegant spinner for interactive CLI apps

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
elegant-spinner
3.0.02 years ago8 years agoMinified + gzip package size for elegant-spinner in KB

Readme

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.

<b>
	<a href="https://tidelift.com/subscription/pkg/npm-elegant-spinner?utm_source=npm-elegant-spinner&utm_medium=referral&utm_campaign=readme">Get professional support for this package with a Tidelift subscription</a>
</b>
<br>
<sub>
	Tidelift helps make open source sustainable for maintainers while giving companies<br>assurances about security, maintenance, and licensing for their dependencies.
</sub>