travel/admin/node_modules/elegant-spinner
yaosen 242417d45d init... 2024-06-24 11:28:18 +08:00
..
index.js init... 2024-06-24 11:28:18 +08:00
license init... 2024-06-24 11:28:18 +08:00
package.json init... 2024-06-24 11:28:18 +08:00
readme.md init... 2024-06-24 11:28:18 +08:00

readme.md

elegant-spinner Build Status

Elegant spinner for interactive CLI apps

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