radin-scale-api/node_modules/es-errors
mehranz 0eb8fbcf69 update 2026-02-16 15:55:07 +03:30
..
.github update 2026-02-16 15:55:07 +03:30
test update 2026-02-16 15:55:07 +03:30
.eslintrc update 2026-02-16 15:55:07 +03:30
CHANGELOG.md update 2026-02-16 15:55:07 +03:30
LICENSE update 2026-02-16 15:55:07 +03:30
README.md update 2026-02-16 15:55:07 +03:30
eval.d.ts update 2026-02-16 15:55:07 +03:30
eval.js update 2026-02-16 15:55:07 +03:30
index.d.ts update 2026-02-16 15:55:07 +03:30
index.js update 2026-02-16 15:55:07 +03:30
package.json update 2026-02-16 15:55:07 +03:30
range.d.ts update 2026-02-16 15:55:07 +03:30
range.js update 2026-02-16 15:55:07 +03:30
ref.d.ts update 2026-02-16 15:55:07 +03:30
ref.js update 2026-02-16 15:55:07 +03:30
syntax.d.ts update 2026-02-16 15:55:07 +03:30
syntax.js update 2026-02-16 15:55:07 +03:30
tsconfig.json update 2026-02-16 15:55:07 +03:30
type.d.ts update 2026-02-16 15:55:07 +03:30
type.js update 2026-02-16 15:55:07 +03:30
uri.d.ts update 2026-02-16 15:55:07 +03:30
uri.js update 2026-02-16 15:55:07 +03:30

README.md

es-errors Version Badge

github actions coverage License Downloads

npm badge

A simple cache for a few of the JS Error constructors.

Example

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);
assert.equal(Eval, EvalError);
assert.equal(Range, RangeError);
assert.equal(Ref, ReferenceError);
assert.equal(Syntax, SyntaxError);
assert.equal(Type, TypeError);
assert.equal(URI, URIError);

Tests

Simply clone the repo, npm install, and run npm test

Security

Please email @ljharb or see https://tidelift.com/security if you have a potential security vulnerability to report.