You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
### Load Environment Variables and pass to non-NodeJS script
93
+
94
+
New in 2.0.0, is a feature inspired by [cross-env](https://www.npmjs.com/package/cross-env) to allow you to load environment variables from your `.env` files and then pass them into a non-NodeJS script such as a shell script. This can simplify the process of maintaining variables used in both your Node app and other scripts. To use this command line executable, you will either need to install globally with the `-g` flag, or install `dotenv-extended` in your project and reference it from your npm scripts.
95
+
96
+
Install Globally:
97
+
98
+
```
99
+
npm install -g dotenv-extended
100
+
```
101
+
102
+
Now call your shell scripts through `dotenv-extended` (this uses the defaults):
0 commit comments