-
-
Notifications
You must be signed in to change notification settings - Fork 35.2k
Expose the errors module from the internal directory #34348
Copy link
Copy link
Closed
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
Description
Is your feature request related to a problem? Please describe.
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.
Reactions are currently unavailable
Metadata
Metadata
Assignees
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