镜像站点 · 本页由第三方 GitHub 只读镜像提供,非 GitHub 官方站点,不接受任何登录或凭据输入。前往 github.com
Skip to content
This repository was archived by the owner on Sep 2, 2023. It is now read-only.
This repository was archived by the owner on Sep 2, 2023. It is now read-only.

Document node: scheme #555

Description

@Jamesernator

Since at least Node 14 one can import builtin modules using the nodejs: scheme. e.g. import fs from "nodejs:fs"; or import("nodejs:fs"). However this capability doesn't seem to be documented anywhere (particularly not on the esm docs).

It would be good to either document this, if it is officially supported, or to warn when nodejs: scheme is used (if it's only for internal use).

Activity

  1. bmeck commented on Sep 22, 2020

    @bmeck
    Member

    @Jamesernator that isn't stable and actually has been a discussion on if it should be node: since that is what policies use. Whenever we converge it will be documented

  2. bmeck commented on Sep 30, 2020

    @bmeck
    Member

    nodejs/node#35387 has landed so the features have unified on node:, do we want to officially document this now? We have a semi-implicit documentation bit in the resolver spec already.

  3. changed the title [-]Document nodejs: scheme[/-] [+]Document ~nodejs:~ node: scheme[/+] on Sep 30, 2020
  4. changed the title [-]Document ~nodejs:~ node: scheme[/-] [+]Document node: scheme[/+] on Sep 30, 2020
  5. bmeck commented on Sep 30, 2020

    @bmeck
    Member

    made a PR to docs

  6. bmeck commented on Jan 21, 2021

    @bmeck
    Member

    this has landed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions