Spinners for use in the terminal
JavaScript
Permalink
Failed to load latest commit information.
.editorconfig Meta tweaks Sep 22, 2017
.gitattributes Meta tweaks Sep 22, 2017
.gitignore Meta tweaks Sep 22, 2017
.npmrc Meta tweaks Sep 22, 2017
.travis.yml Meta tweaks Sep 22, 2017
example-all.js Add note on how to use `example-all.js` Jan 14, 2018
example.js Meta tweaks Sep 22, 2017
index.js init Mar 3, 2016
license Meta tweaks Sep 22, 2017
package.json 1.1.0 Oct 5, 2017
readme.md Add related Rust module to the readme (#28) Dec 31, 2017
screenshot.gif init Mar 3, 2016
spinners.json Add some emoji spinners (#23) Oct 5, 2017
test.js Meta tweaks Sep 22, 2017

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 cli-spinners

Usage

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

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

Preview

The header GIF is outdated. See all the spinner at once or one at the time.

API

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

See the spinners.

Related

License

MIT © Sindre Sorhus