dotenv-expand
Advanced tools
Changelog
12.0.0 (2024-11-16)
NOTE: I recommend dotenvx over dotenv-expand when you are ready. I'm putting all my effort there for a unified standard .env implementation that works everywhere and matches bash, docker-compose, and more. In some cases it slightly improves on them - leading to more reliability for your secrets and config.
This has always been dangerous (unexpected side effects) and is now removed.
process.env
should not hold values you want to expand. If for some reason you need equivalent abilities, use dotenvx. You can ship an encrypted .env file with your code - allowing safe expansion at runtime - rather than relying on trying to expand pre-existingprocess.env
values that could for good reason have a dollar sign in them (example a password).
Changelog
11.0.0 (2024-02-10)
import dotenv-expand/config
(#99)POSTGRESQL.BASE.USER
(#93)processEnv
option (#105)${VAR-default}
(#109)process.env
environment variables. NOTE: make sure to see updated README regarding dotenv.config({ processEnv: {} })
(#104)$var1$var2
(#103, #104)VAR=$VAR
#98ignoreProcessEnv
option (use processEnv
option going forward)