toddbluhm / env-cmd

Setting environment variables from a file
https://www.npmjs.com/package/env-cmd
MIT License
1.73k stars 65 forks source link

feat: add support for parameter expansion #342

Open hpohlmeyer opened 2 years ago

hpohlmeyer commented 2 years ago

Adds support for parameter expansions in strings. For example:

./node_modules/.bin/env-cmd -x echo "Hello ${WHO}!"

and

{
  "script": {
    "hello": "env-cmd -x echo \"Hello ${WHO}!\""
  }
}

Closes https://github.com/toddbluhm/env-cmd/issues/341

nkrul commented 2 years ago

Think I submitted something similar in https://github.com/toddbluhm/env-cmd/pull/253 ?