percentagebar
v1.0.3
Published
Package to get a percentageBar inform of a String
Maintainers
Readme
percentagebar
Example
const percentagebar = require('percentagebar')
percentagebar(10, 5); // returns ==> '[▓▓▓▓▓░░░░░] 50%'
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%. |
