Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

std/cli/spinner.ts>SpinnerOptions

The Deno Standard Library
Latest
The Standard Library has been moved to JSR. See the blog post for details.
interface SpinnerOptions
import { type SpinnerOptions } from "https://deno.land/std@0.224.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.