1.0.1 • Published 5 years ago
progress-bar-string v1.0.1
music-progress-bar
a simple flexiable music progress bar
Results
- ======*===============
- ======/===============
- ======x===============
- ======x=====
- xxxxxx*xxxxxxxxxxxxxxx
- xxxxxx*xxxxxx
- %3 xxxxxxx*xxxx
- <xxxxxxx*xxxxx> 3%
- lovely progress bar here => xxxxxx*xxxxx
- lllllllllllllllllxlllllllllllll
- ▬🔘▬▬▬▬▬▬▬▬▬ 3%
- ▬🔘▬▬▬▬▬▬▬▬▬ 00:00/02:26
- And more !!
V 1.0.1 is Here with changes
See Changelog !
Features
- Easy to use.
- Fast.
- You can change everything style, witdh, ....
Requirements
- Nothing ;)
Changelog
See Changelog !
Supports :
- node.js
Configuration
const { porgressBar } = require("music-progress-bar");
console.log(porgressBar({Options}));Some Examples
console.log(mp.porgressBar({start:1,end:10,width:10,bodyStyle:"=",currentStyle:"*"}, {}));Options
These are keys in the options object you can pass to the progress bar along with.
startTimestamp (3000) ,type : Timestamp.endTimestamp (30000),type : Timestamp.widththe displayed width of the progress bar defaulting to20,type : Number.bodyStylethe displayed time line style defaulting to▬,type : String.currentStylethe displayed current postion style defaulting to🔘,type : String.
Setttings ( {} )
formatRe desing the progress bar on your preferences .
porgressBar({start:1,end:10,width:10,bodyStyle:"=",currentStyle:"*"}, {format:" [ <bar> ] <precent> hi <%>"}) ==> [ ===*====== ] 3 hi %richBarshow precent and bar in a cool waytype : boolean.patternchange bar patterntype : string.
Settings-options
format :
<bar>The progress bar.<precent>The progress in %.<%>The % symbol.<box>The box bar !!
pattern :
boxreplaces the normal progress bar with a progress box xD.
1.0.1
5 years ago