Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Expose the errors module from the internal directory #34348

Copy link
Copy link
@szmarczak

Description

@szmarczak
Issue body actions

Is your feature request related to a problem? Please describe.

#14570 (comment)

Describe the solution you'd like

Expose the errors module so it can be imported e.g. const errors = require('errors');

That way we could easily throw Node.js errors without duplicating them like this.

Describe alternatives you've considered

No, duplicates increase the package size.

ExE-Boss and sindresorhus

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature requestIssues that request new features to be added to Node.js.Issues that request new features to be added to Node.js.stale

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.