Skip to content

Expose up-to-date list of builtin modulesΒ #3307

Closed
@zkat

Description

@zkat

npm's normalize-package-data needs a list of built in node modules in order to warn against potential package name conflicts (see fixNameField.

We used to have the list hardcoded, and then @sindresorhus was kind enough to author an external package that would maintain such a list, is-builtin-module.

It seems that this list is best maintained by node itself, since there's always a risk of things going out of sync or being just plain wrong. Would it be possible to expose this directly through some built-in value in node?

Ref: https://github.com/nodejs/node/pull/3299/files#r41686776

cc @Fishrock123

Metadata

Metadata

Assignees

Labels

feature requestIssues that request new features to be added to Node.js.help wantedIssues that need assistance from volunteers or PRs that need help to proceed.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions