Open Jayllyz opened 2 months ago
What about Node's built-in --env-file
https://nodejs.org/dist/latest-v20.x/docs/api/cli.html#--env-fileconfig? I prefer it since it's one less dependency, at least for simple use cases. (tsx, bun and deno also support --env-file
)
Good find! Had no idea node has this built in now
If we don't already, we should mention it in the docs for dotenv
Suggest dotenvx instead