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                                ...           5 years ago
  • 1.0.0                                ...           5 years ago
Maintainers (1)
Downloads
Today 304
This Week 47,739
This Month 81,251
Last Day 3,468
Last Week 52,673
Last Month 237,178
Dependencies (0)
None
Dev Dependencies (3)
Dependents (191)

Copyright 2014 - 2017 © taobao.org |