How to change the color of complete
I tried with {complete: '\x1b[32m|\x1b[0m', incomplete: '-'} where | is the green character, but the result is not good: [||||||[32m|--------------]
you can wrap it with something like this: https://www.npmjs.com/package/colors
but you're still going to get 32m in there
Also ran into this issue, gave up and made my own: @dinoabsoluto/flex-progress. Hope someone finds it useful.
I try to modify the color of complete , for example bar = new ProgressBar(':current/:total :bar :percent :elapseds', { total: 100, complete: green, incomplete: red, });
then, we can aqurie more informations about the color change of complete.