env-cmd
env-cmd copied to clipboard
Parameter Expansion support
Hi, I am trying to use env-cmd with parameter expansion to concatenate the variable with a string.
Am I doing something wrong or is that currently impossible?
Here is an example:
.env:
VAR=World
package.json:
"echo": "env-cmd -x echo \"Hello ${VAR}!\""
Expected Output: Hello World!
Actual Output: Hello !
alternatively you can use dotenvx for this. uses dotenv-expand under the hood.