Skip to content

Explore option to use util.parseEnv instead of dotenv #217

@voxpelli

Description

@voxpelli

Prerequisites

  • I have written a descriptive issue title
  • I have searched existing issues to ensure the feature has not already been requested

🚀 Feature Proposal

Using util.parseEnv as an alternative to dotenv, possibly eventually replacing dotenv altogether.

Tangentially: Would then also make sense to move dotenv to become an optional peer dependency of env-schema.

Motivation

Since node.js v21.7.0 / v20.12.0 there's util.parseEnv and while its status is still experimental it would be good to start experimenting with it in env-schema and to provide experimental support for it ourselves.

Also, since v17 of dotenv they started logging stuff by default: motdotla/dotenv#874

And v17 was merged automatically in #213

Example

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions