dotenv-expand is a zero-dependency module that extends dotenv with advanced environment-variable processing. It expands variables inside .env values using braced or unbraced interpolation syntax. Default values and alternate-value expressions allow configuration to adapt when variables are present or missing. The package also supports command substitution, allowing trusted .env files to insert the output of local commands. Encrypted values created with dotenvx can be decrypted when the required private key is supplied separately. Developers can preload the module before an application starts or expand parsed values programmatically into process.env or a custom object. Version 12 and later no longer expand variables that already exist in process.env, making the behavior more predictable.

Features

  • Environment variable interpolation
  • Braced and unbraced expansion syntax
  • Default and alternate value expressions
  • Trusted command substitution
  • Encrypted dotenvx value support
  • Preload and programmatic expansion modes

Project Samples

Project Activity

See All Activity >

Categories

Security

License

BSD License

Follow dotenv-expand

dotenv-expand Web Site

Other Useful Business Software
Build Agents and Models on One Platform Icon
Build Agents and Models on One Platform

Everything you need to build production-ready agents and models. Access 200+ Google and third-party AI models and tools.

Gemini Enterprise Agent Platform is Google Cloud's comprehensive platform for developers to build, scale, govern, and optimize agents and models. Choose from Google's most advanced models and third-party models like Anthropic's Claude Model Family.
Try It Free
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of dotenv-expand!

Additional Project Details

Programming Language

JavaScript

Related Categories

JavaScript Security Software

Registered

2026-08-11