elegant-spinner

v3.0.0
Elegant spinner for interactive CLI apps
ansi terminal console cli string log logging spinner busy and 8 more...

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.

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.
npm i elegant-spinner

Metadata

  • MIT
  • ^12.20.0 || ^14.13.1 || >=16.0.0
  • Sindre Sorhus
  • released 9/7/2021

Downloads

Maintainers