Skip to content

Commit c958bb5

Browse files
committed
README
1 parent 8970abe commit c958bb5

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

README.md

+4-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ Parse and load environment files (containing ENV variable exports) into Node.js
1414
BAR=bar1
1515
BAZ=1
1616
QUX=
17-
17+
# QUUX=
1818
```
1919

2020
**`.env2`**
@@ -26,6 +26,7 @@ Parse and load environment files (containing ENV variable exports) into Node.js
2626
exports BAR=bar2
2727
exports BAZ=2
2828
exports QUX=
29+
# exports QUUX=
2930

3031
```
3132

@@ -43,13 +44,15 @@ Parse and load environment files (containing ENV variable exports) into Node.js
4344
assert.equal(process.env.BAR, "bar1");
4445
assert.equal(process.env.BAZ, "1");
4546
assert.equal(process.env.QUX, "");
47+
assert.equal(process.env.QUUX, undefined);
4648

4749
// Load another ENV file - and overwrite any defined ENV variables.
4850
env(__dirname + '/.env2', {overwrite: true});
4951
assert.equal(process.env.FOO, "foo2");
5052
assert.equal(process.env.BAR, "bar2");
5153
assert.equal(process.env.BAZ, "2");
5254
assert.equal(process.env.QUX, "");
55+
assert.equal(process.env.QUUX, undefined);
5356
```
5457

5558

0 commit comments

Comments
 (0)