MCPcopy Create free account
hub / github.com/343dev/optimizt / createProgressBarContainer

Function createProgressBarContainer

lib/create-progress-bar-container.js:5–10  ·  view source on GitHub ↗
(totalCount)

Source from the content-addressed store, hash-verified

3import { getPlural } from './get-plural.js';
4
5export function createProgressBarContainer(totalCount) {
6 return new CliProgress.MultiBar({
7 format: '{bar} {percentage}% | Processed {value} of {total} ' + getPlural(totalCount, 'image', 'images'),
8 clearOnComplete: true,
9 }, CliProgress.Presets.shades_classic);
10}

Callers 2

optimizeFunction · 0.90
convertFunction · 0.90

Calls 1

getPluralFunction · 0.90

Tested by

no test coverage detected