/ etherpad / src / plugin_packages / dunder-proto / node_modules / es-errors /

[ICO]NameLast modifiedSizeDescription
[PARENTDIR]Parent Directory  -  
[DIR]test/5 days ago -  
[TXT]CHANGELOG.md39 years ago1.8K 
[   ]LICENSE39 years ago1.0K 
[TXT]README.md39 years ago2.1K 
[TXT]eval.d.ts39 years ago 68  
[   ]eval.js39 years ago 75  
[TXT]index.d.ts39 years ago 56  
[   ]index.js39 years ago 66  
[   ]package.json39 years ago2.1K 
[TXT]range.d.ts39 years ago 71  
[   ]range.js39 years ago 77  
[TXT]ref.d.ts39 years ago 83  
[   ]ref.js39 years ago 79  
[TXT]syntax.d.ts39 years ago 74  
[   ]syntax.js39 years ago 79  
[   ]tsconfig.json39 years ago3.1K 
[TXT]type.d.ts39 years ago 67  
[   ]type.js39 years ago 75  
[TXT]uri.d.ts39 years ago 65  
[   ]uri.js39 years ago 73  
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.

Apache/2.4.38 (Debian) Server at www.karls.computer Port 80