custom-bar
v1.0.0
Published
Make simple progress bar
Downloads
3
Readme
Custom-bar
How to install
In your console run
npm i custom-bar
How to use
bar(currectValue,MaxValue,BarSize,show,FillBar, EmptyBar)
show
, FillBar
and EmptyBar
is optionnal
const progressbar = require('custom-bar')
console.log(progressbar.bar(90,100,10)); // output █████████▁
console.log(test.bar(90,100,10,false,'⬜', '⬛')) // output ⬜⬜⬜⬜⬜⬜⬜⬜⬜⬛
console.log(test.bar(90,100,10,true,'⬜', '⬛')) // output ⬜⬜⬜⬜⬜⬜⬜⬜⬜⬛ 90/100