Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Spinners for use in the terminal

License

NotificationsYou must be signed in to change notification settings

sindresorhus/cli-spinners

70+ spinners for use in the terminal




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

You probably want to use one of these spinners through theora package.

Install

npm install cli-spinners

Usage

importcliSpinnersfrom'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 thespinner at once orone at the time.

API

cliSpinners

Each spinner comes with a recommendedinterval and an array offrames.

See the spinners.

randomSpinner()

Get a random spinner.

import{randomSpinner}from'cli-spinners';console.log(randomSpinner());/*{interval: 80,frames: ['⠋', '⠙', '⠹', '⠸', '⠼', '⠴', '⠦', '⠧', '⠇', '⠏']}*/

Related


[8]ページ先頭

©2009-2025 Movatter.jp