Spinners for use in the terminal
JavaScript
Latest commit 24a4edc Dec 8, 2016 @sindresorhus 1.0.0
Permalink
Failed to load latest commit information.
.editorconfig init Mar 3, 2016
.gitattributes init Mar 3, 2016
.gitignore init Mar 3, 2016
.travis.yml ES2015ify Jul 21, 2016
example-all.js ES2015ify Jul 21, 2016
example.js ES2015ify Jul 21, 2016
index.js init Mar 3, 2016
license init Mar 3, 2016
package.json 1.0.0 Dec 7, 2016
readme.md Update the spinner preview Dec 7, 2016
screenshot.gif init Mar 3, 2016
spinners.json Add dqpb spinner (#17) Dec 7, 2016
test.js init Mar 3, 2016

readme.md

cli-spinners Build Status

60+ spinners for use in the terminal

The list of spinners is just a JSON file and can be used wherever.

You probably want to use one of these spinners through the ora module.

Install

$ npm install --save cli-spinners

Usage

const cliSpinners = require('cli-spinners');

console.log(cliSpinners.dots);
/*
{
    interval: 80,
    frames: ['⠋', '⠙', '⠹', '⠸', '⠼', '⠴', '⠦', '⠧', '⠇', '⠏']
}
*/

Preview

The header GIF is outdated. Click below to see a preview of all the spinners.

API

Each spinner comes with a recommended interval and an array of frames.

See the spinners.

Related

  • ora - Elegant terminal spinner

License

MIT © Sindre Sorhus