@@ -1264,6 +1264,19 @@ Print node's version.
12641264
12651265## Environment variables
12661266
1267+ ### ` FORCE_COLOR=[1, 2, 3] `
1268+
1269+ The ` FORCE_COLOR ` environment variable is used to
1270+ enable ANSI colorized output. The value may be:
1271+
1272+ * ` 1 ` , ` true ` , or the empty string ` '' ` indicate 16-color support,
1273+ * ` 2 ` to indicate 256-color support, or
1274+ * ` 3 ` to indicate 16 million-color support.
1275+
1276+ When ` FORCE_COLOR ` is used and set to a supported value, both the ` NO_COLOR ` ,
1277+ and ` NODE_DISABLE_COLORS ` environment variables are ignored.
1278+
1279+ Any other value will result in colorized output being disabled.
12671280### ` NODE_DEBUG=module[,…] `
12681281<!-- YAML
12691282added: v0.1.32
@@ -1609,6 +1622,11 @@ and the line lengths of the source file (in the key `lineLengths`).
16091622}
16101623```
16111624
1625+ ### ` NO_COLOR=<any> `
1626+
1627+ [ ` NO_COLOR ` ] [ ] is an alias for ` NODE_DISABLE_COLORS ` . The value of the
1628+ environment variable is arbitrary.
1629+
16121630### ` OPENSSL_CONF=file `
16131631<!-- YAML
16141632added: v6.11.0
@@ -1704,6 +1722,7 @@ $ node --max-old-space-size=1536 index.js
17041722[ `Buffer` ] : buffer.md#buffer_class_buffer
17051723[ `CRYPTO_secure_malloc_init` ] : https://www.openssl.org/docs/man1.1.0/man3/CRYPTO_secure_malloc_init.html
17061724[ `NODE_OPTIONS` ] : #cli_node_options_options
1725+ [ `NO_COLOR` ] : https://no-color.org
17071726[ `SlowBuffer` ] : buffer.md#buffer_class_slowbuffer
17081727[ `process.setUncaughtExceptionCaptureCallback()` ] : process.md#process_process_setuncaughtexceptioncapturecallback_fn
17091728[ `tls.DEFAULT_MAX_VERSION` ] : tls.md#tls_tls_default_max_version
0 commit comments