doc: adds NO_COLOR to assert doc page

Co-Authored-By: Vse Mozhet Byt <vsemozhetbyt@gmail.com>

PR-URL: https://github.com/nodejs/node/pull/30483
Refs: https://github.com/nodejs/node/issues/30484
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Denys Otrishko <shishugi@gmail.com>
This commit is contained in:
Shobhit ChittoraandVse Mozhet Byt authored and Ruben Bridgewater committed 2019-11-19 14:46:04 +01:00
1 parent b82f63d9ca
commit 7f664e454b
1 file changed
+5 -1
+5 -1
View File
@@ -114,9 +114,13 @@ assert.deepEqual([[[1, 2, 3]], 4, 5], [[[1, 2, '3']], 4, 5]);
// ]
```
To deactivate the colors, use the `NODE_DISABLE_COLORS` environment variable.
To deactivate the colors, use the `NO_COLOR` or
`NODE_DISABLE_COLORS` environment variable.
This will also deactivate the colors in the REPL.
For more on the color support in terminal environments, read
the tty [getColorDepth()](tty.html#tty_writestream_getcolordepth_env) doc.
## Legacy mode
Legacy mode uses the [Abstract Equality Comparison][] in: