New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@yetnt/progressbar

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@yetnt/progressbar

An easy, simple and customizable string progress bar

  • 1.2.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Weekly downloads
 
Created
Source

progressbar.js

A progress bar creator in javascript!

Installation

npm i @yetnt/progressbar

Usage

const { progressBar } = require('@yetnt/progressbar')

A Simple bar

progressBar(45, 10, "□", "■")

Output

"■■■■□□□□□□"

Return Array

progressBar(45, 10, "□", "■", true)

Output

[
  '■', '■', '■', '■',
  '□', '□', '□', '□',
  '□', '□'
]

Edge overrides

If you'd like you can also change the first bar element and the last bar element so you can edge it with emojis or something else.

Edge Syntax

["emptyChar", "filledChar"]

Edge Use

progressBar(56, 30, "▢", "▧", false, ["◁", "◀"], ["▷", "▶"])

Output

"◀▧▧▧▧▧▧▧▧▧▧▧▧▧▧▧▢▢▢▢▢▢▢▢▢▢▢▢▢▷"

Math on a progress bar

Github

Keywords

FAQs

Package last updated on 09 Jun 2023

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc