Skip to content

Commit

Permalink
doc: mention case-insensitive env on windows
Browse files Browse the repository at this point in the history
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: #9166
Fixes: #9157
  • Loading branch information
oliversalzburg authored and evanlucas committed Nov 2, 2016
1 parent d573acf commit d1c32aa
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions doc/api/process.md
Original file line number Diff line number Diff line change
Expand Up @@ -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])
<!-- YAML
added: v6.0.0
Expand Down

0 comments on commit d1c32aa

Please sign in to comment.