Skip to content

Documentation / listr2 / Spinner

Class: Spinner

Constructors

new Spinner()

new Spinner(): Spinner

Returns

Spinner

Properties

spinner

protected readonly spinner: string[]

Defined in

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

Methods

spin()

spin(): void

Returns

void

Defined in

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


fetch()

fetch(): string

Returns

string

Defined in

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


isRunning()

isRunning(): boolean

Returns

boolean

Defined in

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


start()

start(cb?, interval?): void

Parameters

cb?

interval?: number = 100

Returns

void

Defined in

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


stop()

stop(): void

Returns

void

Defined in

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