1.0.3 • Published 5 years ago

percentagebar v1.0.3

Weekly downloads
23
License
ISC
Repository
github
Last release
5 years ago

percentagebar

Example

const percentagebar = require('percentagebar')
percentagebar(10, 5); // returns ==> '[▓▓▓▓▓░░░░░] 50%'

Example

Documentation

statusbar(full, curr, length, highChar, lowChar, openingChar, closingChar, addPercent) ⇒ string

Function to return a process Bar.

Kind: global function
Returns: string - - Process Bar.

ParamTypeDefaultDescription
fullnumberFull Value.
currnumberCurrent Value.
lengthnumber10Length of the Process Bar.
highCharstring""Char to use when prercent high.
lowCharstring""Char to use when percent low.
openingCharstring"["Char to use to open percentage Bar.
closingCharstring"]"Char to use to close percentage bar.
addPercentbooleantrueOption to add Percent after Bar. : ▓▓ 100%.