@hishprorg/ipsam-saepe

1.4.26 • Public • Published

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

Weekly Downloads

352

Version

1.4.26

License

MIT

Unpacked Size

56.9 kB

Total Files

126

Last publish

Collaborators

  • hatrungvk94