1.0.1 • Published 3 years ago
auro-string-chart-generator v1.0.1
"Creates progress bar type charts from an array"
https://www.npmjs.com/package/auro-string-chart-generator
i dont plan on updating or improving this. i was just needed something like this for a discord bot im making and thought other people might need it
docs:
percentArr
percentArr([2,2,6])
-> 0.2, 0.2, 0.6
returns the decimal percent of each value
percentArrStr
percentArrStr([2,2,6])
-> '██', '██', '██████'
returns a string like value of the inputted array across 10 characters
percentArrStrPadded
percentArrStrPadded([2,2,6])
-> '▓▓▒▒▒▒▒▒▒▒', '▓▓▒▒▒▒▒▒▒▒', '▓▓▓▓▓▓▒▒▒▒'
returns a string like value of the inputted array across 10 characters but padded 4head