Buckets:
186 GB
47,027 files
Updated 3 months ago
Ctrl+K
| Name | Size | Uploaded | Xet hash |
|---|---|---|---|
| .github | 1 items | ||
| test | 1 items | ||
| .eslintrc | 43 Bytes xet | c9eddeea | |
| CHANGELOG.md | 1.83 kB xet | 7ac167e1 | |
| LICENSE | 1.07 kB xet | c0d5f000 | |
| README.md | 2.11 kB xet | 780979c9 | |
| eval.d.ts | 68 Bytes xet | 0fe2be0c | |
| eval.js | 75 Bytes xet | 1c1f8e68 | |
| index.d.ts | 56 Bytes xet | 083de69b | |
| index.js | 66 Bytes xet | ad89a22f | |
| package.json | 2.17 kB xet | 01a7c5f9 | |
| range.d.ts | 71 Bytes xet | 6832c847 | |
| range.js | 77 Bytes xet | d2102367 | |
| ref.d.ts | 83 Bytes xet | f8b59ea3 | |
| ref.js | 79 Bytes xet | 8b6169ad | |
| syntax.d.ts | 74 Bytes xet | 9cfebe24 | |
| syntax.js | 79 Bytes xet | c156820f | |
| tsconfig.json | 3.17 kB xet | 097837cd | |
| type.d.ts | 67 Bytes xet | 5ac654cb | |
| type.js | 75 Bytes xet | a4c31ff4 | |
| uri.d.ts | 65 Bytes xet | 82f6f8b5 | |
| uri.js | 73 Bytes xet | 32b1380c |
es-errors
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.
- Total size
- 186 GB
- Files
- 47,027
- Last updated
- May 1
- Pre-warmed CDN
- US EU US EU
