![]() Server : Apache System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64 User : corals ( 1002) PHP Version : 7.4.33 Disable Function : exec,passthru,shell_exec,system Directory : /home/corals/dceprojects.corals.io/node_modules/dotenv-expand/ |
[](http://www.opensourcecitizen.org/project?url=github.com/motdotla/dotenv-expand) If you found this library useful, donate some CPU cycles to this project by clicking above. Thank you! 😇 # dotenv-expand <img src="https://raw.githubusercontent.com/motdotla/dotenv-expand/master/dotenv-expand.png" alt="dotenv-expand" align="right" /> Dotenv-expand adds variable expansion on top of [dotenv](http://github.com/motdotla/dotenv). If you find yourself needing to expand environment variables already existing on your machine, then dotenv-expand is your tool. [](https://travis-ci.org/motdotla/dotenv-expand) [](https://www.npmjs.com/package/dotenv-expand) [](https://github.com/feross/standard) ## Install ```bash npm install dotenv --save npm install dotenv-expand --save ``` ## Usage As early as possible in your application, require dotenv and dotenv-expand, and wrap dotenv-expand around dotenv. ```js var dotenv = require('dotenv') var dotenvExpand = require('dotenv-expand') var myEnv = dotenv.config() dotenvExpand(myEnv) ``` See [test/.env](./test/.env) for examples of variable expansion in your `.env` file.