New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

@kalimahapps/cli-progress

Package Overview
Dependencies
Maintainers
0
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@kalimahapps/cli-progress

cli-progress wrapper with personal configuration

latest
npmnpm
Version
1.0.4
Version published
Weekly downloads
35
-33.96%
Maintainers
0
Weekly downloads
 
Created
Source

Cli Progress

This is a wrapper around cli-progress package with personal preferences.

Installation

pnpm install @kalimahapps/cli-progress

Usage

import { createProgressBar, createHeader } from '@kalimahapps/cli-progress';

// Create a header
createHeader('Header');

// Create a progress bar
const progress = createProgressBar('Downloading');
for (let index = 0; index <= 100; index++) {
	await new Promise((resolve) => {
		return setTimeout(resolve, 10);
	});
	progress.update(index);
}
progress.stop();

API

createHeader

Creates a header with a title.

Parameters

  • title: string: The title of the header.

createProgressBar

Creates a progress bar.

Parameters

  • prefix?: string: Content to display before the progress bar.

Keywords

cli

FAQs

Package last updated on 26 Jun 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts