Browse Source

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 <benjamingr@gmail.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
PR-URL: https://github.com/nodejs/node/pull/9166
Fixes: https://github.com/nodejs/node/issues/9157
v6
Oliver Salzburg 8 years ago
committed by Benjamin Gruenbaum
parent
commit
0a8d0eaa9b
  1. 10
      doc/api/process.md

10
doc/api/process.md

@ -708,6 +708,16 @@ console.log(process.env.TEST);
// => undefined // => 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]) ## process.emitWarning(warning[, name][, ctor])
<!-- YAML <!-- YAML
added: v6.0.0 added: v6.0.0

Loading…
Cancel
Save