Skip to content

Feature request: Env Var NODE_REQUIRE #11853

@jchip

Description

@jchip
  • Version: 4.x.x, 6.x.x, 7.x.x
  • Platform: All
  • Subsystem:

I am requesting for something that's basically the command line option -r but through an environment variable NODE_REQUIRE. The reason is that the -r option is not persistent. If some other app invokes node, then the -r is not applied. The environment variable NODE_REQUIRE should always be checked when node starts up.

When the env var exist and -r is also specified, I think both should be required.

Thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature requestIssues that request new features to be added to Node.js.moduleIssues and PRs related to the module subsystem.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions