mirror of https://github.com/lukechilds/docs.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
6 years ago | |
---|---|---|
.. | ||
index.js | 6 years ago | |
license | 6 years ago | |
package.json | 6 years ago | |
readme.md | 6 years ago |
readme.md
elegant-spinner ![Build Status](https://travis-ci.org/sindresorhus/elegant-spinner.svg?branch=master)
Elegant spinner for interactive CLI apps
![](/lukechilds/docs/media/commit/764404a2d5f11311c7056ba9961ab0fd2a4d8247/_site/node_modules/elegant-spinner/screenshot.gif)
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