ProgressBarFormatter

import { ProgressBarFormatter } from "jsr:@ende/cli/unstable-progress-bar";

interface ยท experimental

interface ProgressBarFormatter

The properties provided to the fmt function upon every visual update.

Properties

styledTime

styledTime: string

A formatted version of the duration. mm:ss

styledData

styledData: string

A formatted version of the data received. 0.40/97.66 KiB

progressBar

progressBar: string

The progress bar string. Default Style: ###-------

time

time: number

The duration of the progress bar.

previousTime

previousTime: number

The duration passed to the last call.

value

value: number

The current value the progress bar is sitting at.

previousValue

previousValue: number

The value passed to the last call.

max

max: number

The max value expected to receive.

Source