How to use the cli-progress.Presets.rect function in cli-progress

To help you get started, we’ve selected a few cli-progress examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github vue-styleguidist / vue-styleguidist / packages / vue-styleguidist / src / scripts / binutils.ts View on Github external
const getProgressPlugin = (msg: string) => {
	const bar = new ProgressBar(
		{
			format: `${msg} ${kleur.green('{bar}')} {percentage}%`
		},
		Presets.rect
	)
	return {
		plugin: new ProgressPlugin(percentage => {
			bar.update(percentage)
		}),
		bar
	}
}

cli-progress

easy to use progress-bar for command-line/terminal applications

MIT
Latest version published 2 years ago

Package Health Score

73 / 100
Full package analysis