[NodeJS] --env-file=.env
Normally you need to put
require("dotenv").config()
console.log(process.env.TEST)
to access env vars
WIth --node-file
flag you don't need to do that anymore
node --env-file=.env f.js
Then you can access the env directly in code
console.log(process.env.TEST)