News for hackers. Stuff that matters.
Re:Node.js 20.6.0 will include built-in support for .env files by mixedCase on Friday August 18, 2023 @01:14PM (#37178828)
.envs generally aren't full blown shell, so you don't have `export` available. With that said, I keep a shell function in my .zshrc which, when given a .env file (or when not given one, assuming $PWD/.env) will set -a, source it and set +a, which loads everything into the environment.

There are no comments on this comment yet.