1.0.1 • Published 3 years ago

auro-string-chart-generator v1.0.1

Weekly downloads
-
License
MIT
Repository
-
Last release
3 years ago

"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 Okayge

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

1.0.1

3 years ago

1.0.0

3 years ago