doowb/ansi-colors

NO_COLOR environment variable support

bgv2 opened this issue ยท 2 comments

bgv2 commented

See https://no-color.org/ (basically the idea is to disable color when the NO_COLOR environment variable is present.)

is this project abandoned?

the author accepts PR?

I would like to see this feature request done.

thanks for your amazing work.

doowb commented

ansi-colors already has way to "disable color" using the enabled flag. See the README.md documentation for more information.

This is exposed as a way for implementors to choose how they implement disabling colors, which allows extending functionality when something new (like NO_COLORS) comes along.