2024-03-24 16:10:25 -07:00
|
|
|
"use strict";
|
|
|
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
|
|
exports.defaultBar = void 0;
|
|
|
|
|
const tslib_1 = require("tslib");
|
|
|
|
|
const cli_progress_1 = tslib_1.__importDefault(require("cli-progress"));
|
|
|
|
|
const chalk_1 = tslib_1.__importDefault(require("chalk"));
|
|
|
|
|
const figures_1 = tslib_1.__importDefault(require("figures"));
|
|
|
|
|
function defaultBar() {
|
|
|
|
|
return new cli_progress_1.default.SingleBar({
|
2024-03-24 16:26:19 -07:00
|
|
|
format: chalk_1.default.green(figures_1.default.bullet) + chalk_1.default.green(' og images ') + '{bar}' + chalk_1.default.whiteBright(' {prefix} ({percentage}%) ') + chalk_1.default.grey('{value}/{total} ') + chalk_1.default.grey('{suffix}'),
|
2024-03-24 16:10:25 -07:00
|
|
|
barCompleteChar: chalk_1.default.green('█'),
|
2024-03-24 16:26:19 -07:00
|
|
|
barIncompleteChar: chalk_1.default.whiteBright('█'),
|
|
|
|
|
barsize: 250,
|
|
|
|
|
clearOnComplete: true
|
2024-03-24 16:10:25 -07:00
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
exports.defaultBar = defaultBar;
|
|
|
|
|
;
|