Unverified Commit 273398a3 authored by Ruben Bridgewater's avatar Ruben Bridgewater
Browse files

tty: add NO_COLOR and FORCE_COLOR support

This adds support to enforce a specific color depth by checking the
`FORCE_COLOR` environment variable similar to `chalk`.

On top of that we also add support for the `NO_COLOR` environment
variable as suggested by https://no-color.org/.

PR-URL: https://github.com/nodejs/node/pull/26485
Refs: https://github.com/nodejs/node/pull/26248


Reviewed-By: default avatarRoman Reiss <me@silverwind.io>
Reviewed-By: default avatarJeremiah Senkpiel <fishrock123@rocketmail.com>
parent 1f1914c9
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment