JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 59499216
  • Score
    100M100P100Q237933F
  • License MIT

A simple cache for a few of the JS Error constructors.

Package Exports

  • es-errors/package.json
  • es-errors/range
  • es-errors/syntax
  • es-errors/type

Readme

es-errors 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 Range = require('es-errors/range');
const Syntax = require('es-errors/syntax');
const Type = require('es-errors/type');

assert.equal(Range, RangeError);
assert.equal(Syntax, SyntaxError);
assert.equal(Type, TypeError);

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.