color hierarchy issue
It seems that a nested color affects a sibling color when a color is applied to both strings up a level.
('aaa' + 'bbb'.magenta).red
leads to aaa in red and bbb in magenta, but when doing:
('aaa'.white + 'bbb'.magenta).red
the white bleeds into bbb (making it pink) for no apparent reason:

repro:
$ node
> console.log(('aaa'.white + 'aaa'.magenta).red)
> console.log(('aaa'.white + 'aaa'.magenta))
> console.log(('aaa' + 'aaa'.magenta).red)
version: 1.1.92
@dwelle How do the String.prototype colors work?
https://github.com/xpl/ansicolor#nice-mode-not-recommended
@dwelle I saw how to use the nice mode, but how does it actually work internally? Does the actual text change as soon as you call the white method? Then when you call the method again with the red is it supposed to only change the colors of non colored characters?
Does the actual text change as soon as you call the white method
it must
Then when you call the method again with the red is it supposed to only change the colors of non colored characters?
I'd say so, yes.
Note, I'm not the author.