env-cmd
env-cmd copied to clipboard
[Feature Request] Possibility to reference existing variables
Possibility to use existing variables:
GENERIC_PATH=/some/path
SPECIFIC_PATH_1=${GENERIC_PATH}/specific1
SPECIFIC_PATH_2=${GENERIC_PATH}/specific2
Any updates about this?
you can use dotenvx for this
HELLO="World"
HELLO2=$HELLO
// index.js
console.log(`Hello ${process.env.HELLO}`)
console.log(`Hello ${process.env.HELLO2}`)
dotenvx run -- node index.js