percentagebar

1.0.3 • Public • Published

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%.

Package Sidebar

Install

npm i percentagebar

Weekly Downloads

6

Version

1.0.3

License

ISC

Unpacked Size

16.3 kB

Total Files

7

Last publish

Collaborators

  • plasmachicken