@erboladaiorg/esse-esse

4.8.98 • Public • Published

@erboladaiorg/esse-esse 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('@erboladaiorg/esse-esse');
const Eval = require('@erboladaiorg/esse-esse/eval');
const Range = require('@erboladaiorg/esse-esse/range');
const Ref = require('@erboladaiorg/esse-esse/ref');
const Syntax = require('@erboladaiorg/esse-esse/syntax');
const Type = require('@erboladaiorg/esse-esse/type');
const URI = require('@erboladaiorg/esse-esse/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.

Readme

Keywords

Package Sidebar

Install

npm i @erboladaiorg/esse-esse

Weekly Downloads

157

Version

4.8.98

License

MIT

Unpacked Size

201 kB

Total Files

547

Last publish

Collaborators

  • diepminhb311