ProgressBarFormatter
import { ProgressBarFormatter } from "jsr:@ende/cli/unstable-progress-bar";interface ยท experimental
interface ProgressBarFormatterThe properties provided to the fmt function upon every visual update.
Properties
styledTime
styledTime: stringA formatted version of the duration.
mm:ss
styledData
styledData: stringA formatted version of the data received.
0.40/97.66 KiB
progressBar
progressBar: stringThe progress bar string.
Default Style: ###-------
time
time: numberThe duration of the progress bar.
previousTime
previousTime: numberThe duration passed to the last call.
value
value: numberThe current value the progress bar is sitting at.
previousValue
previousValue: numberThe value passed to the last call.
max
max: numberThe max value expected to receive.