elegant-spinner
Elegant spinner for interactive CLI apps
Last updated a year ago by sindresorhus .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install elegant-spinner 
SYNC missed versions from official npm registry.

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 elegant-spinner

Usage

const elegantSpinner = require('elegant-spinner');
const logUpdate = require('log-update');

const frame = elegantSpinner();

setInterval(() => {
	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

Current Tags

  • 2.0.0                                ...           latest (a year ago)

3 Versions

  • 2.0.0                                ...           a year ago
  • 1.0.1                                ...           4 years ago
  • 1.0.0                                ...           5 years ago
Maintainers (1)
Downloads
Today 3,576
This Week 51,016
This Month 191,390
Last Day 4,289
Last Week 48,473
Last Month 144,197
Dependencies (0)
None
Dev Dependencies (3)
Dependents (179)

Copyright 2014 - 2016 © taobao.org |