Skip to main content
Module

std/cli/spinner.ts>SpinnerOptions

The Deno Standard Library
Go to Latest
interface SpinnerOptions
import { type SpinnerOptions } from "https://deno.land/std@0.223.0/cli/spinner.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.