On GitHub, motdotla/dotenv-expand has picked up 1.1k stars, JavaScript. Expand variables already on your machine for use in your .env file.
Snapshot summary built from the project's own GitHub metadata — there's no written TopGit review yet. The page will update automatically when a full review is published.
WHY NO REVIEW YET
TopGit writes full reviews for the most-starred, most-requested repositories. This page is a snapshot until then — see the READ ME tab for the original README in full.
Keep the private key separate from the encrypted .env file—for example, in your cloud platform's secrets manager. Read the dotenvx whitepaper for more details.
Custom Process Environment
Use processEnv to write expanded values to an object other than process.env:
Use $(command) in your .env file. dotenv-expand runs the command and replaces the expression with its output. See the Command Substitution example under Advanced.
How does encryption work?
Use dotenvx to encrypt your .env file. dotenv-expand automatically decrypts encrypted: values when DOTENV_PRIVATE_KEY is set.
Keep the private key separate from the encrypted .env file—for example, in your cloud platform's secrets manager. Read the dotenvx whitepaper for more details.
Is it safe to commit an encrypted `.env` file?
Yes, as long as the corresponding DOTENV_PRIVATE_KEY is stored separately and never committed with it. Use dotenvx to create and manage the encrypted file.
How can I avoid expanding pre-existing envs?
As of v12.0.0 dotenv-expand no longer expands process.env.
If you need this ability, use dotenvx and ship an encrypted .env file with your code, allowing safe expansion at runtime.
How can I override an existing environment variable?
Use dotenvx, as dotenv-expand does not support this.
dotenv-expand is a separate module (without knowledge of the loading of process.env and the .env file) and so cannot reliably know what to override.
Docs
Expand
expand expands, evaluates, and decrypts values in a dotenv result:
How active is development on motdotla/dotenv-expand?
The most recent commit recorded on motdotla/dotenv-expand was 18 days ago, based on the GitHub push timestamp. The repository has 99 forks — one of the better signals of community interest.
How many stars does motdotla/dotenv-expand have?
motdotla/dotenv-expand has 1.1k GitHub stars — refresh the page for the live number, or check github.com/motdotla/dotenv-expand. TopGit mirrors GitHub's count but does not claim minute-by-minute accuracy.
What is motdotla/dotenv-expand?
motdotla/dotenv-expand (motdotla/dotenv-expand) is a JavaScript project on GitHub. From the project's own README: Expand variables already on your machine for use in your .env file.
What language is motdotla/dotenv-expand written in?
motdotla/dotenv-expand is written primarily in JavaScript. GitHub's language field is based on the largest share of bytes in the default branch.
What topics is motdotla/dotenv-expand associated with?
GitHub's repository topics for motdotla/dotenv-expand: "config", "dotenv", "env", "environment", "expand", "secrets". TopGit's editorial category is open-source.
Read full README in the tab above.
Still deciding about dotenv-expand?
One click hands the question to an AI along with this page — see what it says about dotenv-expand.