- Loads environment variables from hierarchy of .env files for Node.js projects.
Use this somewhere near the start of your program:
require('dotenv-ex')();
for more information on how to use it, and more, check out documentation.
- Unlicense (~Public Domain)
- https://github.com/motdotla/dotenv - used under-the-hood, even tho it discourages using multiple
.end
files, let alone source controlling them - https://github.com/motdotla/dotenv-expand - also used, for variable expansion
- https://github.com/facebook/create-react-app -
react-scripts
was immediate source of inspiration - https://github.com/bkeepers/dotenv - hierarchy of
.env
files based on this ruby gem