chalk/chalk

DISABLE_CHALK environment variable

andrewshawcare opened this issue · 2 comments

In some contexts I would like to remove all colors and formatting and have plain output.

There are some libraries that use chalk and the formatting characters end up in logging systems that cannot support terminal presentation. In contexts where this occurs, it would be beneficial to not only suppress colors, but all control characters.

This could resort to either no presentational treatment or equivalent Markdown representation (i.e. **lorem ipsum** for chalk`{bold lorem ipsum}` .

Help here would be greatly appreciated. :)

Qix- commented

Does FORCE_COLOR=0 not work?

Qix- commented

Going to close as there is a clear solution here. Let me know if that doesn't work for you for some reason!