Progress Bars
$

ProgressBar

FREE

Animated progress bars with gradient colors, percentage display, item counts, and ETA calculation.

animatedgradienteta

# Preview

block demo
BOOTING PREVIEW

# Usage

import { ProgressBar } from '@taracod/termui';

const bar = new ProgressBar({
  total: 100,
  width: 40,
  title: 'Downloading',
  gradient: true,
  showETA: true,
});

bar.start();
for (let i = 0; i <= 100; i++) {
  bar.update(i);
  await sleep(30);
}
bar.finish('Download complete!');

# API

PropTypeDefaultDescription
totalnumber100Total number of units to complete
widthnumber40Rendered bar width in terminal cells
gradientbooleanfalseBlend red to yellow to green across the fill
showETAbooleantrueEstimate remaining time from update velocity
Support TermUI