es-tooling / module-replacements

A manifest of JS modules and their more modern/active replacements
MIT License
532 stars 30 forks source link

dotenv #152

Open Jayllyz opened 2 months ago

Jayllyz commented 2 months ago

Suggest dotenvx instead

Mouvedia commented 1 month ago

You mean dotenvx.

jonasb commented 2 weeks 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)

43081j commented 2 weeks ago

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