Created
May 22, 2017 14:30
-
-
Save gittimos/ec776749773177dbf72b9dcc9c2d24d7 to your computer and use it in GitHub Desktop.
Load environment variables stored in .env for node.js applications
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const env = require('node-env-file'); | |
env(__dirname + '/.env'); | |
// put .env in .gitignore |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment