Created
May 2, 2019 17:03
-
-
Save coderfi/59ccd150abf84910dc965f2a03759fa2 to your computer and use it in GitHub Desktop.
dotenv npm command line node
This file contains hidden or 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
npm install dotenv | |
echo "FOO=bar" > .env | |
node -r dotenv/config -e 'console.log(process.env.FOO)' | |
bar |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment