opusdev/vector-similarity-api
1
1# es-errors <sup>[![Version Badge][npm-version-svg]][package-url]</sup>2 3[![github actions][actions-image]][actions-url]4[![coverage][codecov-image]][codecov-url]5[![License][license-image]][license-url]6[![Downloads][downloads-image]][downloads-url]7 8[![npm badge][npm-badge-png]][package-url]9 10A simple cache for a few of the JS Error constructors.11 12## Example13 14```js15const assert = require('assert');16 17const Base = require('es-errors');18const Eval = require('es-errors/eval');19const Range = require('es-errors/range');20const Ref = require('es-errors/ref');21const Syntax = require('es-errors/syntax');22const Type = require('es-errors/type');23const URI = require('es-errors/uri');24 25assert.equal(Base, Error);26assert.equal(Eval, EvalError);27assert.equal(Range, RangeError);28assert.equal(Ref, ReferenceError);29assert.equal(Syntax, SyntaxError);30assert.equal(Type, TypeError);31assert.equal(URI, URIError);32```33 34## Tests35Simply clone the repo, `npm install`, and run `npm test`36 37## Security38 39Please email [@ljharb](https://github.com/ljharb) or see https://tidelift.com/security if you have a potential security vulnerability to report.40 41[package-url]: https://npmjs.org/package/es-errors42[npm-version-svg]: https://versionbadg.es/ljharb/es-errors.svg43[deps-svg]: https://david-dm.org/ljharb/es-errors.svg44[deps-url]: https://david-dm.org/ljharb/es-errors45[dev-deps-svg]: https://david-dm.org/ljharb/es-errors/dev-status.svg46[dev-deps-url]: https://david-dm.org/ljharb/es-errors#info=devDependencies47[npm-badge-png]: https://nodei.co/npm/es-errors.png?downloads=true&stars=true48[license-image]: https://img.shields.io/npm/l/es-errors.svg49[license-url]: LICENSE50[downloads-image]: https://img.shields.io/npm/dm/es-errors.svg51[downloads-url]: https://npm-stat.com/charts.html?package=es-errors52[codecov-image]: https://codecov.io/gh/ljharb/es-errors/branch/main/graphs/badge.svg53[codecov-url]: https://app.codecov.io/gh/ljharb/es-errors/54[actions-image]: https://img.shields.io/endpoint?url=https://github-actions-badge-u3jn4tfpocch.runkit.sh/ljharb/es-errors55[actions-url]: https://github.com/ljharb/es-errors/actions56 