@@ -1140,6 +1140,19 @@ Print node's version.
1140
1140
1141
1141
## Environment variables
1142
1142
1143
+ ### ` FORCE_COLOR=[1, 2, 3] `
1144
+
1145
+ The ` FORCE_COLOR ` environment variable is used to
1146
+ enable ANSI colorized output. The value may be:
1147
+
1148
+ * ` 1 ` , ` true ` , or the empty string ` '' ` indicate 16-color support,
1149
+ * ` 2 ` to indicate 256-color support, or
1150
+ * ` 3 ` to indicate 16 million-color support.
1151
+
1152
+ When ` FORCE_COLOR ` is used and set to a supported value, both the ` NO_COLOR ` ,
1153
+ and ` NODE_DISABLE_COLORS ` environment variables are ignored.
1154
+
1155
+ Any other value will result in colorized output being disabled.
1143
1156
### ` NODE_DEBUG=module[,…] `
1144
1157
<!-- YAML
1145
1158
added: v0.1.32
@@ -1485,6 +1498,11 @@ and the line lengths of the source file (in the key `lineLengths`).
1485
1498
}
1486
1499
```
1487
1500
1501
+ ### ` NO_COLOR=<any> `
1502
+
1503
+ [ ` NO_COLOR ` ] [ ] is an alias for ` NODE_DISABLE_COLORS ` . The value of the
1504
+ environment variable is arbitrary.
1505
+
1488
1506
### ` OPENSSL_CONF=file `
1489
1507
<!-- YAML
1490
1508
added: v6.11.0
@@ -1579,6 +1597,7 @@ $ node --max-old-space-size=1536 index.js
1579
1597
[ `Atomics.wait()` ] : https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Atomics/wait
1580
1598
[ `Buffer` ] : buffer.md#buffer_class_buffer
1581
1599
[ `NODE_OPTIONS` ] : #cli_node_options_options
1600
+ [ `NO_COLOR` ] : https://no-color.org
1582
1601
[ `SlowBuffer` ] : buffer.md#buffer_class_slowbuffer
1583
1602
[ `process.setUncaughtExceptionCaptureCallback()` ] : process.md#process_process_setuncaughtexceptioncapturecallback_fn
1584
1603
[ `tls.DEFAULT_MAX_VERSION` ] : tls.md#tls_tls_default_max_version
0 commit comments