es-errors
JSON →A minimal utility package (v1.3.0) that provides cached references to native JavaScript Error constructors: Error, EvalError, RangeError, ReferenceError, SyntaxError, TypeError, URIError. It exposes these via separate entry points to allow tree-shaking and avoid bundling unused constructors. Maintained by ljharb, with TypeScript types included. No dependencies, works with Node >= 0.4. Unique for being an extremely lightweight (≈ 1KB) alternative to heavier error polyfill libraries, with a focus on correctness and stable caching.
Resources
packagees-errors ↗