vlad 6f123ff03e 18.07 6 年之前
..
index.js 6f123ff03e 18.07 6 年之前
license 6f123ff03e 18.07 6 年之前
package.json 6f123ff03e 18.07 6 年之前
readme.md 6f123ff03e 18.07 6 年之前

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