镜像站点 · 本页由第三方 GitHub 只读镜像提供,非 GitHub 官方站点,不接受任何登录或凭据输入。前往 github.com
Skip to content

module.path exists but is not documented #33270

Description

@ha6000

The module object does not contain the path property.

Activity

  1. Trott commented on May 6, 2020

    @Trott
  2. Trott commented on May 6, 2020

    @Trott
  3. ha6000 commented on May 6, 2020

    @ha6000
    Author

    Im pretty sure it exist

  4. Trott commented on May 6, 2020

    @Trott
    Member

    Im pretty sure it exist

    Yes, it does.

    So the bug is that it is not documented?

  5. reopened this on May 6, 2020
  6. changed the title [-]path property not in Module[/-] [+]`module.path` exists but is not documented[/+] on May 6, 2020
  7. transferred this issue fromnodejs/nodejs.orgon May 6, 2020
  8. added
    docIssues and PRs related to Node.js documentation.
    moduleIssues and PRs related to the module subsystem.
    on May 6, 2020
  9. aduh95 commented on May 9, 2020

    @aduh95
    Contributor

    Added on d004313. Should it be documented or rather hidden behind a Symbol?

    CC @BridgeAR

  10. added a commit that references this issue on May 9, 2020
  11. domleonard commented on May 19, 2020

    @domleonard

    To clarify users' experience of the issue: https://nodejs.org/docs/latest/api/modules.html#modules_the_module_object does not contain a heading for module.path, and there is no link for #modules_module_path in contents at the top of the page.

  12. added a commit that references this issue on May 21, 2020
  13. added a commit that references this issue on Apr 19, 2025
  14. added a commit that references this issue on Jul 27, 2026
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

    docIssues and PRs related to Node.js documentation.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