@teamteanpm2024/exercitationem-rem-magni

1.1.5 • Public • Published

@teamteanpm2024/exercitationem-rem-magni 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('@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.

Package Sidebar

Install

npm i @teamteanpm2024/exercitationem-rem-magni

Weekly Downloads

7

Version

1.1.5

License

MIT

Unpacked Size

9.7 kB

Total Files

9

Last publish

Collaborators

  • shivamkalsi2024