Snow 1d0b9c5323 增加了node环境 1 mēnesi atpakaļ
..
.github 1d0b9c5323 增加了node环境 1 mēnesi atpakaļ
test 1d0b9c5323 增加了node环境 1 mēnesi atpakaļ
.eslintrc 1d0b9c5323 增加了node环境 1 mēnesi atpakaļ
CHANGELOG.md 1d0b9c5323 增加了node环境 1 mēnesi atpakaļ
LICENSE 1d0b9c5323 增加了node环境 1 mēnesi atpakaļ
README.md 1d0b9c5323 增加了node环境 1 mēnesi atpakaļ
eval.d.ts 1d0b9c5323 增加了node环境 1 mēnesi atpakaļ
eval.js 1d0b9c5323 增加了node环境 1 mēnesi atpakaļ
index.d.ts 1d0b9c5323 增加了node环境 1 mēnesi atpakaļ
index.js 1d0b9c5323 增加了node环境 1 mēnesi atpakaļ
package.json 1d0b9c5323 增加了node环境 1 mēnesi atpakaļ
range.d.ts 1d0b9c5323 增加了node环境 1 mēnesi atpakaļ
range.js 1d0b9c5323 增加了node环境 1 mēnesi atpakaļ
ref.d.ts 1d0b9c5323 增加了node环境 1 mēnesi atpakaļ
ref.js 1d0b9c5323 增加了node环境 1 mēnesi atpakaļ
syntax.d.ts 1d0b9c5323 增加了node环境 1 mēnesi atpakaļ
syntax.js 1d0b9c5323 增加了node环境 1 mēnesi atpakaļ
tsconfig.json 1d0b9c5323 增加了node环境 1 mēnesi atpakaļ
type.d.ts 1d0b9c5323 增加了node环境 1 mēnesi atpakaļ
type.js 1d0b9c5323 增加了node环境 1 mēnesi atpakaļ
uri.d.ts 1d0b9c5323 增加了node环境 1 mēnesi atpakaļ
uri.js 1d0b9c5323 增加了node环境 1 mēnesi atpakaļ

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.