Package Exports
- es-errors/package.json
- es-errors/range
- es-errors/syntax
- es-errors/type
Readme
es-errors 
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.