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
path: root/doc
diff options
context:
space:
mode:
authorStuart Knightley <stuart@stuartk.com>2013-02-08 03:27:23 +0400
committerNathan Zadoks <nathan@nathan7.eu>2013-02-11 00:37:32 +0400
commita12f16c29fa7dab143b6a320b9617fcd50ebfd69 (patch)
tree144484132312544b312f503c335adc2b8cb3a0c3 /doc
parent2ed2a4c49c0051ca8511c9553a3f3e11b86907a3 (diff)
Add info about env vars in config file
Diffstat (limited to 'doc')
-rw-r--r--doc/cli/config.md6
1 files changed, 5 insertions, 1 deletions
diff --git a/doc/cli/config.md b/doc/cli/config.md
index 3deafce5f..e48957ba8 100644
--- a/doc/cli/config.md
+++ b/doc/cli/config.md
@@ -36,11 +36,15 @@ work the same.
`$HOME/.npmrc` (or the `userconfig` param, if set above)
This file is an ini-file formatted list of `key = value` parameters.
+Environment variables can be replaced using `${VARIABLE_NAME}`. For example:
+
+ prefix = ${HOME}/.npm-packages
### Global config file
`$PREFIX/etc/npmrc` (or the `globalconfig` param, if set above):
-This file is an ini-file formatted list of `key = value` parameters
+This file is an ini-file formatted list of `key = value` parameters.
+Environment variables can be replaced as above.
### Built-in config file