Innovenergy_trunk/frontend/node_modules/elegant-spinner
Kim 085d7c68ba adding untracked frontend and typescript files 2023-02-21 07:27:20 +01:00
..
index.js adding untracked frontend and typescript files 2023-02-21 07:27:20 +01:00
license adding untracked frontend and typescript files 2023-02-21 07:27:20 +01:00
package.json adding untracked frontend and typescript files 2023-02-21 07:27:20 +01:00
readme.md adding untracked frontend and typescript files 2023-02-21 07:27:20 +01: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