Skip to content
Elegant spinner for interactive CLI apps
Branch: master
Clone or download
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.editorconfig
.gitattributes
.gitignore
.travis.yml
index.js
license
package.json
readme.md add note about `ora` Mar 3, 2016
screenshot.gif init Aug 16, 2015
test.js

readme.md

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

You can’t perform that action at this time.