Skip to content

Commit 6f212b9

Browse files
oliversalzburgMylesBorins
authored andcommitted
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 <[email protected]> Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> PR-URL: #9166 Fixes: #9157
1 parent 1d79af6 commit 6f212b9

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

doc/api/process.md

+10
Original file line numberDiff line numberDiff line change
@@ -708,6 +708,16 @@ console.log(process.env.TEST);
708708
// => undefined
709709
```
710710

711+
On Windows operating systems, environment variables are case-insensitive.
712+
713+
Example:
714+
715+
```js
716+
process.env.TEST = 1;
717+
console.log(process.env.test);
718+
// => 1
719+
```
720+
711721
## process.emitWarning(warning[, name][, ctor])
712722
<!-- YAML
713723
added: v6.0.0

0 commit comments

Comments
 (0)