-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs: add dotenv alternatives (#176)
- Loading branch information
Showing
3 changed files
with
31 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
# dotenv | ||
|
||
Although dotenv is reliable, it may not be necessary or may lack certain features. | ||
|
||
## Alternatives | ||
|
||
### dotenvx | ||
|
||
Modern and secure alternative by the same author. It supports encryption, and multi-environment configs. | ||
|
||
[Project Page](https://github.com/dotenvx/dotenvx) | ||
[npm](https://www.npmjs.com/package/@dotenvx/dotenvx) | ||
|
||
### Node.js --env-file | ||
|
||
Built into Node.js since v20.6.0. Zero dependencies, good for simple use cases. | ||
|
||
```bash | ||
node --env-file=.env index.js | ||
``` | ||
|
||
Also supported by [tsx](https://www.npmjs.com/package/tsx), [Bun](https://bun.sh/docs/runtime/env#manually-specifying-env-files), and [Deno](https://docs.deno.com/runtime/reference/env_variables/#.env-file). | ||
|
||
[Node docs](https://nodejs.org/dist/latest-v20.x/docs/api/cli.html#--env-fileconfig) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters