Skip to content

Use new node: URLs where applicable? #96

Description

@mattcollier

This feature landed in Node 14.13.1

[EDIT] in 14.180+ this syntax can also be used with require().

https://nodejs.org/api/esm.html#node-imports

https://2ality.com/2021/12/node-protocol-imports.html
nodejs/node#38343
nodejs/node#37246
nodejs/node#35387

Among other things, this is in support of "a more extensive standard library in JavaScript" that will eventually be put into the node: namespace and allows the re-use of existing NPM package names without conflicts.
https://github.com/tc39/proposal-built-in-modules

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    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