es-errors
npmv1.3.0TypeScriptA simple cache for a few of the JS Error constructors.
Overview
es-errors is an npm package that a simple cache for a few of the JS Error constructors. The latest version is 1.3.0, released under the MIT license.
Who should use it
Teams working in the npm ecosystem who need a simple cache for a few of the JS Error constructors and value a focused solution.
When not to use it
Consider an alternative if you need to or if a more actively-maintained option better fits your npm stack.
Pros
- Ships TypeScript type definitions.
- Clear open-source license (MIT).
Cons
- No significant drawbacks detected from available metadata.
Auto-generated from collected registry metadata. No external claims are inferred.
Relationship graph
Dependencies (left) and dependents (right) of es-errors.
Dependencies
Dev (13)
Used by
Popular packages that depend on es-errors.
Store information about any JS value in a side channel. Uses WeakMap if available.
A helper to optimistically set Symbol.toStringTag, when possible.
Store information about any JS value in a side channel, using a linked list
Store information about any JS value in a side channel, using a Map
Store information about any JS value in a side channel. Uses WeakMap if available.
Get and robustly cache all JS language-level intrinsics at first require time
ES6 spec-compliant RegExp.prototype.flags shim.
Set a function's name property
Set a function's length property
Helper functions around Function call/apply/bind, for use in `call-bind`
Firefox 17-26 iterators throw a StopIteration object to indicate "done". This normalizes it.
resolve like require.resolve() on behalf of files asynchronously and synchronously
Alternatives to es-errors
`Object.defineProperty`, but not IE 8's broken one.
Which kind of boxed JS primitive is this?
Determine if the JS environment has `Symbol.toStringTag` support. Supports spec, or shams.
A robust, ES3 compatible, "has own property" predicate.
A JavaScript parser
Get and robustly cache all JS language-level intrinsics at first require time
Robustly `.call.bind()` a function
Robust call-bound JavaScript intrinsics, using `call-bind` and `get-intrinsic`.
An AST-based pattern checker for JavaScript.
An Esprima-compatible JavaScript parser built on Acorn
A query library for ECMAScript AST using a CSS selector like query language.
Is this value a JS SharedArrayBuffer?
Frequently installed together
An AST-based pattern checker for JavaScript.
string representations of objects in node and the browser
Get and robustly cache all JS language-level intrinsics at first require time
A robust, ES3 compatible, "has own property" predicate.
Implementation of Function.prototype.bind
Robust call-bound JavaScript intrinsics, using `call-bind` and `get-intrinsic`.
`Object.getOwnPropertyDescriptor`, but accounts for IE's broken implementation.
Robustly `.call.bind()` a function
Store information about any JS value in a side channel, using a Map
The semantic version parser used by npm.
`Object.defineProperty`, but not IE 8's broken one.
Determine if the JS environment has `Symbol.toStringTag` support. Supports spec, or shams.
Version history
| Version | Published | License |
|---|---|---|
| 1.3.0latest | 2 years ago | MIT |
| 1.2.1 | 2 years ago | MIT |
| 1.2.0 | 2 years ago | MIT |
| 1.1.0 | 2 years ago | MIT |
| 1.0.0 | 2 years ago | MIT |
Maintainers
Frequently asked questions
How do I install es-errors?
Run `npm install es-errors` to add es-errors to your npm project.
What license is es-errors released under?
es-errors is distributed under the MIT license.
How popular is es-errors?
es-errors has approximately 0 downloads per week and 2 known dependent packages.