Skip to content

Latest commit

 

History

History
37 lines (21 loc) · 884 Bytes

readme.md

File metadata and controls

37 lines (21 loc) · 884 Bytes

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 --save elegant-spinner

Usage

var elegantSpinner = require('elegant-spinner');
var logUpdate = require('log-update');
var frame = elegantSpinner();

setInterval(function () {
	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