Là một dự án mã nguồn mở, motdotla/dotenv-expand đã đạt 1.1k sao trên GitHub, ngôn ngữ JavaScript. Expand variables already on your machine for use in your .env file.
Tóm tắt dựng từ metadata GitHub của chính dự án — chưa có bài review TopGit. Trang sẽ tự động cập nhật khi bài review đầy đủ được xuất bản.
VÌ SAO CHƯA CÓ REVIEW
TopGit viết bài đầy đủ cho repo có nhiều sao nhất và được yêu cầu nhiều nhất. Trang này là snapshot trong thời gian chờ — xem README gốc ở tab READ ME.
Dotenv-expand is a zero-dependency module that expands environment variables, runs command substitutions, and decrypts encrypted values on top of dotenv.
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
SDK
Dotenv-expand exposes one function:
expand
Expand
expand expands, evaluates, and decrypts values in a dotenv result:
motdotla/dotenv-expand có 1.1k sao GitHub — tải lại trang để xem số mới nhất, hoặc xem trực tiếp github.com/motdotla/dotenv-expand. TopGit phản chiếu số sao của GitHub nhưng không cam kết đến từng phút.
motdotla/dotenv-expand có những chủ đề gì?
GitHub topics của motdotla/dotenv-expand: "config", "dotenv", "env", "environment", "expand", "secrets". TopGit xếp repo vào nhóm mã nguồn mở.
motdotla/dotenv-expand còn đang phát triển không?
Commit gần nhất trên motdotla/dotenv-expand là 1 tháng trước (theo timestamp GitHub). Repo có 99 fork — một chỉ báo về mức độ quan tâm của cộng đồng.
motdotla/dotenv-expand là gì?
motdotla/dotenv-expand (motdotla/dotenv-expand) là dự án JavaScript trên GitHub. Theo mô tả gốc: Expand variables already on your machine for use in your .env file.
motdotla/dotenv-expand viết bằng ngôn ngữ gì?
motdotla/dotenv-expand chủ yếu viết bằng JavaScript. Trường "language" của GitHub dựa trên phần lớn byte ở nhánh mặc định.
Đọc đầy đủ README ở tab phía trên.
dotenv-expand có đáng để bạn bỏ thời gian?
ChatGPT, Claude và Perplexity đều đọc được trang này. Hỏi thử xem họ nghĩ gì về dotenv-expand.