Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions doc/api/process.md
Original file line number Diff line number Diff line change
Expand Up @@ -2723,8 +2723,10 @@ changes:

* `path` {string | URL | Buffer | undefined}. **Default:** `'./.env'`

Loads the `.env` file into `process.env`. Usage of `NODE_OPTIONS`
in the `.env` file will not have any effect on Node.js.
Loads the `.env` file into `process.env`. If a variable is already defined in
`process.env`, its existing value takes precedence and is not overwritten by the
`.env` file. Usage of `NODE_OPTIONS` in the `.env` file will not have any effect
on Node.js.

```cjs
const { loadEnvFile } = require('node:process');
Expand Down