Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/deno/tools/release/deps.ts>dax.ProgressBar

A modern runtime for JavaScript and TypeScript.
Go to Latest
class dax.ProgressBar
Re-export
import { dax } from "https://deno.land/x/deno@v1.40.0/tools/release/deps.ts";
const { ProgressBar } = dax;

A progress bar instance created via $.progress(...).

Constructors

new
ProgressBar(onLog: (...data: any[]) => void, opts: ProgressOptions)

Methods

Finish showing the progress bar.

Forces a render to the console.

increment(inc?)

Increments the position of the progress bar.

kind(kind: "raw" | "bytes")

Sets how to format the length values.

length(size: number | undefined)

Sets the total length of the progress bar.

message(message: string | undefined)

Sets the message the progress bar will display after the prefix in white.

noClear(value?)

Whether the progress bar should output a summary when finished.

position(position: number)

Sets the current position of the progress bar.

prefix(prefix: string | undefined)

Sets the prefix message/word, which will be displayed in green.

with<TResult>(action: () => TResult): TResult

Does the provided action and will call .finish() when this is the last .with(...) action that runs.

with<TResult>(action: () => Promise<TResult>): Promise<TResult>