一覧へ戻る
sindresorhus/cli-spinners(新しいタブで開きます)
主要言語: JavaScript
Spinners for use in the terminal
- star 数
- 2,940
- watcher 数
- 20
- fork 数
- 132
- issue 数
- 2
- 最終更新
- 2026/09/19
主要言語: JavaScript
Spinners for use in the terminal
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.
npm install cli-spinners
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.The header GIF is outdated. See live demo.
Each spinner comes with a recommended interval and an array of frames.
Get a random spinner.
import {randomSpinner} from 'cli-spinners'; console.log(randomSpinner()); /* { interval: 80, frames: ['⠋', '⠙', '⠹', '⠸', '⠼', '⠴', '⠦', '⠧', '⠇', '⠏'] } */