From 0a8d0eaa9be35bfa899135118f1917dbd57dbda1 Mon Sep 17 00:00:00 2001 From: Oliver Salzburg Date: Tue, 18 Oct 2016 18:48:44 +0200 Subject: [PATCH] doc: mention case-insensitive env on windows On Windows OS, environment variables are case-insensitive and are treated likewise in NodeJS. This can be confusing and can lead to hard-to-debug problems when moving code from one environment to another. Reviewed-By: Benjamin Gruenbaum Reviewed-By: Anna Henningsen Reviewed-By: Colin Ihrig Reviewed-By: Luigi Pinca PR-URL: https://github.com/nodejs/node/pull/9166 Fixes: https://github.com/nodejs/node/issues/9157 --- doc/api/process.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/doc/api/process.md b/doc/api/process.md index 376a40d713..7a109dd6ab 100644 --- a/doc/api/process.md +++ b/doc/api/process.md @@ -708,6 +708,16 @@ console.log(process.env.TEST); // => undefined ``` +On Windows operating systems, environment variables are case-insensitive. + +Example: + +```js +process.env.TEST = 1; +console.log(process.env.test); +// => 1 +``` + ## process.emitWarning(warning[, name][, ctor])