@teamteanpm2024/exercitationem-rem-magni
v1.1.5
Published
[![github actions][actions-image]][actions-url] [![coverage][codecov-image]][codecov-url] [![License][license-image]][license-url] [![Downloads][downloads-image]][downloads-url]
Downloads
44
Maintainers
Keywords
Readme
@teamteanpm2024/exercitationem-rem-magni
A simple cache for a few of the JS Error constructors.
Example
const assert = require('assert');
const Base = require('@teamteanpm2024/exercitationem-rem-magni');
const Eval = require('@teamteanpm2024/exercitationem-rem-magni/eval');
const Range = require('@teamteanpm2024/exercitationem-rem-magni/range');
const Ref = require('@teamteanpm2024/exercitationem-rem-magni/ref');
const Syntax = require('@teamteanpm2024/exercitationem-rem-magni/syntax');
const Type = require('@teamteanpm2024/exercitationem-rem-magni/type');
const URI = require('@teamteanpm2024/exercitationem-rem-magni/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.