Skip to content

Latest commit

 

History

History
30 lines (23 loc) · 1.22 KB

README.md

File metadata and controls

30 lines (23 loc) · 1.22 KB

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.

Param Type Default Description
full number Full Value.
curr number Current Value.
[length] number 10 Length of the Process Bar.
[highChar] string "▓" Char to use when prercent high.
[lowChar] string "░" Char to use when percent low.
[openingChar] string "[" Char to use to open percentage Bar.
[closingChar] string "]" Char to use to close percentage bar.
[addPercent] boolean true Option to add Percent after Bar. : [▓▓] 100%.