SpinnerOptions

import { SpinnerOptions } from "jsr:@ende/cli/unstable-spinner";

interface · experimental

interface SpinnerOptions

Options for Spinner.

Properties

spinner

spinner?: string[]

The sequence of characters to be iterated through for animation.

Default: ["⠋", "⠙", "⠹", "⠸", "⠼", "⠴", "⠦", "⠧", "⠇", "⠏"]

message

message?: string

The message to display next to the spinner. This can be changed while the spinner is active.

interval

interval?: number

The time between each frame of the spinner in milliseconds.

Default: 75

color

color?: Color

The color of the spinner. Defaults to the default terminal color. This can be changed while the spinner is active.

output

output?: typeof Ende.stderr | typeof Ende.stdout

The stream to write the spinner to.

Default: Ende.stdout

Source