export-env
v1.1.6
Published
Load, interpolate and present process environment variables from a file
Maintainers
Readme
Export-env
A way to package environment files to your node process
This :
export-env ../.env ./src/server.jsinstead of this:
export $(xargs -d '\n' -a ../.env) && node ./src/server.jsAlso, variable interpolation
...
APPNAME=Super-App
DOMAIN=super-app.com
PORT=8080
SERVER_URL=https://${DOMAIN}:${PORT}/v1
WELCOME_MESSAGE=Welcom to ${APPNAME}. We are happy to have you!
...
...
