cli-spinners
Spinners for use in the terminal
npm downloads npm version npm license
cli-spinnersSimilar Packages:
Npm Package Weekly Downloads Trend
3 Years
ЁЯМЯ Show real-time usage chart on cli-spinners's README.md, just copy the code below.
## Usage Trend
[![Usage Trend of cli-spinners](https://npm-compare.com/img/npm-trend/THREE_YEARS/cli-spinners.png)](https://npm-compare.com/cli-spinners#timeRange=THREE_YEARS)
Cumulative GitHub Star Trend
ЁЯМЯ Show GitHub stars trend chart on cli-spinners's README.md, just copy the code below.
## GitHub Stars Trend
[![GitHub Stars Trend of cli-spinners](https://npm-compare.com/img/github-trend/cli-spinners.png)](https://npm-compare.com/cli-spinners)
Stat Detail
Package
Downloads
Stars
Size
Issues
Publish
License
cli-spinners34,257,4302,62733.2 kB4a month agoMIT
README for cli-spinners

cli-spinners

70+ 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 package.

Install

npm install cli-spinners

Usage

import cliSpinners from 'cli-spinners';

console.log(cliSpinners.dots);
/*
{
	interval: 80,
	frames: ['таЛ', 'таЩ', 'та╣', 'та╕', 'та╝', 'та┤', 'таж', 'таз', 'таЗ', 'таП']
}
*/
  • interval is the intended time per frame, in milliseconds.
  • frames is an array of frames to show for the spinner.

Preview

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

API

cliSpinners

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

See the spinners.

randomSpinner()

Get a random spinner.

import {randomSpinner} from 'cli-spinners';

console.log(randomSpinner());
/*
{
	interval: 80,
	frames: ['таЛ', 'таЩ', 'та╣', 'та╕', 'та╝', 'та┤', 'таж', 'таз', 'таЗ', 'таП']
}
*/

Related