Skip to content

Documentation / listr2 / Spinner

Class: Spinner

Constructors

new Spinner()

new Spinner(): Spinner

Returns

Spinner

Properties

spinner

protected readonly spinner: string[]

Source

packages/listr2/src/utils/ui/spinner.ts:5


id?

private optional id: Timeout

Source

packages/listr2/src/utils/ui/spinner.ts:6


spinnerPosition

private spinnerPosition: number = 0

Source

packages/listr2/src/utils/ui/spinner.ts:8

Methods

spin()

spin(): void

Returns

void

Source

packages/listr2/src/utils/ui/spinner.ts:10


fetch()

fetch(): string

Returns

string

Source

packages/listr2/src/utils/ui/spinner.ts:14


isRunning()

isRunning(): boolean

Returns

boolean

Source

packages/listr2/src/utils/ui/spinner.ts:18


start()

start(cb?, interval?): void

Parameters

cb?

interval?: number= 100

Returns

void

Source

packages/listr2/src/utils/ui/spinner.ts:22


stop()

stop(): void

Returns

void

Source

packages/listr2/src/utils/ui/spinner.ts:32