Skip to main content

@std/cli@0.215.0

latest
Works with
It is unknown whether this package works with Browsers, Deno, Node.js, Cloudflare Workers, Bun
It is unknown whether this package works with Browsers
It is unknown whether this package works with Deno
It is unknown whether this package works with Node.js
It is unknown whether this package works with Cloudflare Workers
It is unknown whether this package works with Bun
JSR Score64%
Published2 years ago (0.215.0)

Classes

c
Spinner(unnamed 0?: SpinnerOptions)

A spinner that can be used to indicate that something is loading.

  • color(value: Color | undefined): void
    No documentation available
  • message: string
    No documentation available
  • start(): void

    Starts the spinner.

  • stop(): void

    Stops the spinner.

Interfaces

I

Options for Spinner.

  • color: Color

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

  • interval: number

    The time between each frame of the spinner in milliseconds.

  • message: string

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

  • spinner: string[]

    The sequence of characters to be iterated through for animation.

Type Aliases

T
Ansi = string & { }
No documentation available
T
Color =
"black"
| "red"
| "green"
| "yellow"
| "blue"
| "magenta"
| "cyan"
| "white"
| "gray"
| Ansi
No documentation available

Report package

Please provide a reason for reporting this package. We will review your report and take appropriate action.

Please review the JSR usage policy before submitting a report.

Add Package

deno add jsr:@std/cli

Import symbol

import * as mod from "@std/cli/spinner";
or

Import directly with a jsr specifier

import * as mod from "jsr:@std/cli/spinner";