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