es
elegant-spinner
npm i elegant-spinner
es

elegant-spinner

Elegant spinner for interactive CLI apps

by Sindre Sorhus

3.0.0 (see all)License:MITTypeScript:DefinitelyTyped
npm i elegant-spinner
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);
  • log-update - Log by overwriting the previous output in the terminal. Useful for rendering progress bars, animations, etc.

Get professional support for this package with a Tidelift subscription
Tidelift helps make open source sustainable for maintainers while giving companies
assurances about security, maintenance, and licensing for their dependencies.

Downloads/wk

2.7M

GitHub Stars

224

LAST COMMIT

1yr ago

MAINTAINERS

1

CONTRIBUTORS

3

OPEN ISSUES

0

OPEN PRs

0
VersionTagPublished
3.0.0
latest
1yr ago
No tutorials found
Add a tutorial
No dependencies found

Rate & Review

100
No reviews found
Be the first to rate