After this file is sourced $FULL_NAME would automatically have the referenced variables filled. That's what one would expect more often than not. This is not the case when using dotenv. To achieve this an additional package dotenv-expand is required.
It would make much more sense if dotenv expanded referenced variables by default. A config option {expand: false} might be used to change this behavior. Am I missing something?
Let's assume we have an .env file:
After this file is sourced
$FULL_NAME
would automatically have the referenced variables filled. That's what one would expect more often than not. This is not the case when usingdotenv
. To achieve this an additional package dotenv-expand is required.It would make much more sense if
dotenv
expanded referenced variables by default. A config option{expand: false}
might be used to change this behavior. Am I missing something?