docs(dotenv): suggest process.loadEnvFile as native replacement#815
docs(dotenv): suggest process.loadEnvFile as native replacement#815unrevised6419 wants to merge 3 commits into
Conversation
Adds process.loadEnvFile(path) (Node.js v20.12.0+) as the first suggested native replacement in the dotenv docs. It is the closest drop-in for dotenv.config() for programmatic loading. Closes e18e#620 Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
gameroman
left a comment
There was a problem hiding this comment.
Also add process.loadEnvFile to the manifest please
Addresses PR review: registers process.loadEnvFile as a native replacement entry and lists it for the dotenv mapping. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
|
Done — added |
Adopt reviewer heading style and trim the description per PR review. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
|
@gameroman if this is a native replacement, shouldn't this live within the native manifest instead of preferred? |
Do you mean I think it's in the preferred manifest because it has docs, and previously we didn't have node-native replacements |
|
@unrevised6419 before we merge this, can you come say Hi so we can interact with you rather than your agent. these days it is important we know we're dealing with a person since some of these things lead to rep farming etc. |
What
Adds
process.loadEnvFile(path)(Node.js v20.12.0+) as the first suggested native replacement in thedotenvdocs.It is the closest drop-in for
dotenv.config()when env vars must be loaded programmatically rather than via the--env-fileflag.Verified
Behavior claims checked empirically on Node v24.16.0:
ENOENTwhen the file is missing..envin the current working directory when called with no path.Closes #620
🤖 Generated with Claude Code