elegant-spinner
TypeScript icon, indicating that this package has built-in type declarations

3.0.0 • Public • Published

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.

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 3.0.0
    554
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 3.0.0
    554
  • 2.0.0
    15,913
  • 1.0.1
    2,078,211
  • 1.0.0
    4

Package Sidebar

Install

npm i elegant-spinner

Weekly Downloads

2,094,682

Version

3.0.0

License

MIT

Unpacked Size

3.94 kB

Total Files

5

Last publish

Collaborators

  • sindresorhus