Miss any of our Open RFC calls?Watch the recordings 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

3,782,921

Version

2.0.0

License

MIT

Unpacked Size

3.49 kB

Total Files

5

Last publish

Collaborators

  • avatar