JSPM

elegant-spinner

1.0.1
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 2026273
  • Score
    100M100P100Q269977F
  • License MIT

Elegant spinner for interactive CLI apps

Package Exports

  • elegant-spinner

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (elegant-spinner) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

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