dotenv-expand
Advanced tools
Changelog
12.0.2 (2025-05-16)
[!TIP] Become a sponsor
The dotenvx-expand README is viewed thousands of times DAILY on GitHub and NPM. Sponsoring dotenv and dotenv-expand is a great way to get in front of developers and give back to the developer community at the same time.
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