Skip to content

Drop dotenv package #151

@davidsneighbour

Description

@davidsneighbour

Node supports .env files natively

  • with CLI parameter --env-file since 20.6.0
  • with API (await process.loadEnvFile('.env');) since 20.12.0

Since v20 is only supported for six more months, and versions before that are already EOL, it might be time to switch to process.loadEnvFile instead of the dotenv package (dreaded because they now include non-silencable, misleading upselling comments in CLI output). I think "they" might have realised that their package has no use in later Node versions.

I don't fully understand the use of dotenv, but it might be time to consider switching to the native integration.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions