Skip to content

Commit f93596d

Browse files
authored
Merge pull request #33 from joelparkerhenderson/patch-1
Add import syntax to README
2 parents 5eb5058 + b3667d9 commit f93596d

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,13 @@ As early as possible in your main script:
5757
require('dotenv-extended').load();
5858
```
5959

60+
Or if you prefer import syntax:
61+
62+
```
63+
import dotEnvExtended from 'dotenv-extended';
64+
dotEnvExtended.load();
65+
```
66+
6067
Create a `.env` file in the root directory of your project. Add environment-specific variables on new lines in the form of `NAME=VALUE`.
6168

6269
For example:

0 commit comments

Comments
 (0)