프로젝트
GitHub에서 보기
sindresorhus/cli-spinners
소개
터미널에서 사용하는 스피너
개발 도구측정된 스타 증가
- in 24h
- 0
- in 7 days
- +2
- in 15 days
- +3
- in 1 month
- +6
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
README.md
Originalcli-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: ['⠋', '⠙', '⠹', '⠸', '⠼', '⠴', '⠦', '⠧', '⠇', '⠏']
}
*/
intervalis the intended time per frame, in milliseconds.framesis an array of frames to show for the spinner.
Preview
The header GIF is outdated. See live demo.
API
cliSpinners
Each spinner comes with a recommended interval and an array of frames.
randomSpinner()
Get a random spinner.
import {randomSpinner} from 'cli-spinners';
console.log(randomSpinner());
/*
{
interval: 80,
frames: ['⠋', '⠙', '⠹', '⠸', '⠼', '⠴', '⠦', '⠧', '⠇', '⠏']
}
*/
Related
- ora - Elegant terminal spinner
- CLISpinner - Swift port
- py-spinners - Python port
- spinners - Rust port
- go-spinners - Go port
- bash-cli-spinners - Bash port
- spinner.nvim - Neovim port
관련 프로젝트 살펴보기
불러오는 중…