Skip to content

import.meta.main #57226

Open
Open
@arslivinski

Description

@arslivinski

What is the problem this feature will solve?

We need an easy way to know if the current file was the one executed by Node.

What is the feature you are proposing to solve the problem?

Following of #49440

Deno and Bun have it, Node should have it too.

What alternatives have you considered?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    esmIssues and PRs related to the ECMAScript Modules implementation.feature requestIssues that request new features to be added to Node.js.

    Type

    No type

    Projects

    Status

    Awaiting Triage

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions