package
A simple cache for a few of the JS Error constructors.
npm install es-errorsGitHub-flavored package documentation.
Across all versions.
Download trend unavailable.
Runtime metadata.
Tagged topics.
Estimated unpacked size across 1 packages.
12.0 kB
Includes dependencies.
A simple cache for a few of the JS Error constructors.
const assert = require('assert');
const Base = require('es-errors');
const Eval = require('es-errors/eval');
const Range = require('es-errors/range');
const Ref = require('es-errors/ref');
const Syntax = require('es-errors/syntax');
const Type = require('es-errors/type');
const URI = require('es-errors/uri');
assert.equal(Base, Error);
Simply clone the repo, npm install, and run npm test
Please email @ljharb or see https://tidelift.com/security if you have a potential security vulnerability to report.