dotenv-expand
Expand variables already on your machine for use in your .env file
...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.