Nonlinear Performance Magnification

npm

Join us for the "JavaScript Supply Chain Security" tech talk, presented by VP of Security, Adam Baldwin. 6/20 at 10am PT.Sign up here »

elegant-spinner

2.0.0 • Public • Published

elegant-spinner Build Status

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

const elegantSpinner = require('elegant-spinner');
const logUpdate = require('log-update');
 
const frame = elegantSpinner();
 
setInterval(() => {
    logUpdate(frame());
}, 50);

Relevant

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

License

MIT © Sindre Sorhus

install

npm i elegant-spinner

Downloadsweekly downloads

1,903,648

version

2.0.0

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability