Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/npm/cli.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLeаh Neukirchen <chneukirchen@gmail.com>2018-03-08 11:21:35 +0300
committerKat Marchán <kzm@sykosomatic.org>2018-03-09 01:20:39 +0300
commitecfbb16dc705f28aa61b3223bdbf9e47230a0fa4 (patch)
tree86685e74353e90e947852a4e0534a0f7b80f78fa /doc/misc/npm-config.md
parent3a33400b89a8dd00fa9a49fcb57a8add36f79fa6 (diff)
config: disable color by default when $NO_COLOR is set (#19929)
This makes npm follow the NO_COLOR standard, as explained in http://no-color.org/ > All command-line software which outputs text with ANSI color added > should check for the presence of a NO_COLOR environment variable that, > when present (regardless of its value), prevents the addition of ANSI > color. npm already provides environment variables (npm_config_color=false) and options (--no-color) to disable coloring by default, but NO_COLOR is an comprehensive approach to disable colors for all tools. PR-URL: https://github.com/npm/npm/pull/19929 Credit: @chneukirchen Reviewed-By: @zkat
Diffstat (limited to 'doc/misc/npm-config.md')
-rw-r--r--doc/misc/npm-config.md3
1 files changed, 3 insertions, 0 deletions
diff --git a/doc/misc/npm-config.md b/doc/misc/npm-config.md
index 70c2ec6e9..52247c2ec 100644
--- a/doc/misc/npm-config.md
+++ b/doc/misc/npm-config.md
@@ -284,6 +284,9 @@ This is a list of CIDR address to be used when configuring limited access tokens
If false, never shows colors. If `"always"` then always shows colors.
If true, then only prints color codes for tty file descriptors.
+This option can also be changed using the environment: colors are
+disabled when the environment variable `NO_COLOR` is set to any value.
+
### depth
* Default: Infinity