From 8bb232fb0e4de3b8313b2951b95b2af91d2ab036 Mon Sep 17 00:00:00 2001 From: Shobhit Chittora Date: Thu, 14 Nov 2019 16:45:24 +0530 Subject: [PATCH] doc: adds NO_COLOR to assert doc page Co-Authored-By: Vse Mozhet Byt PR-URL: https://github.com/nodejs/node/pull/30483 Refs: https://github.com/nodejs/node/issues/30484 Reviewed-By: Ruben Bridgewater Reviewed-By: Luigi Pinca Reviewed-By: Denys Otrishko --- doc/api/assert.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/doc/api/assert.md b/doc/api/assert.md index 5bdb5f106e24ad..6c324a0e381b21 100644 --- a/doc/api/assert.md +++ b/doc/api/assert.md @@ -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: