Module

std/cli/mod.ts>SpinnerOptions

The Deno Standard Library
Latest
interface SpinnerOptions
import { type SpinnerOptions } from "https://dotland.deno.dev/std@0.224.0/cli/mod.ts";

Options for Spinner.

Properties

optional
spinner: string[] = ["⠋", "⠙", "⠹", "⠸", "⠼", "⠴", "⠦", "⠧", "⠇", "⠏"]

The sequence of characters to be iterated through for animation.

optional
message: string

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

optional
interval: number = 75

The time between each frame of the spinner in milliseconds.

optional
color: Color

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