</>PackageGraphPackageGraph

es-errors

npmv1.3.0TypeScript

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

Adopt with care

es-errors is usable, with caveats. Last published 948 days ago.

  • ?Adoption: grade ?, Not reported by this registry.

    No download data reported for this package yet.

  • DMaintenance: grade D, Poor — a real concern.

    Last published 948 days ago.

  • AWeight: grade A, Excellent.

    Zero runtime dependencies, about 12 KB installed.

  • BSupply chain: grade B, Good.

    This package has a single maintainer (bus factor of 1).

  • ALicense: grade A, Excellent.

    MIT — permissive, with no copyleft found in the dependency tree.

Grades are computed deterministically from registry metadata collected by PackageGraph — downloads, dependents, publish dates, the resolved dependency tree, maintainer count, and declared licenses. No third-party scores are used.

Install cost

What you actually take on by adding es-errors to a project.

0
Direct dependencies

Runtime packages this one declares itself.

0
Total installed

Distinct packages in the full runtime tree, deduplicated the way a package manager would.

12 KB
Install size

Unpacked size of this package plus its entire runtime tree.

Tree depth

Longest resolved dependency chain below this package.

Compatibility

Node.js
node >= 0.4
Module format
CommonJS only
TypeScript
Types included
Install scripts
None

Quick start

A usage example from the es-errors README.

const assert = require('assert');

const Base = require('es-errors');
const Eval = require('es-errors/eval');
const Range = require('es-errors/range');
const Ref = require('es-errors/ref');
const Syntax = require('es-errors/syntax');
const Type = require('es-errors/type');
const URI = require('es-errors/uri');

assert.equal(Base, Error);
assert.equal(Eval, EvalError);
assert.equal(Range, RangeError);
assert.equal(Ref, ReferenceError);
Example truncated — see the full README.

es-errors vs the alternatives

Packages solving a similar problem in the npm ecosystem, compared on the signals that drive an adoption decision.

PackageWeekly downloadsDependentsLicenseLast release
es-errorsthis page015MIT2 years ago
eslint138.4M279MIT1 day ago
es-define-property131.3M4MIT1 day ago
call-bind80.7M5MIT1 day ago
esprima77.6M5BSD-2-Clause1 day ago
@babel/parser023MIT1 day ago

Dependencies

Declared by es-errors v1.3.0. Runtime dependencies are installed with the package; dev dependencies are not.

Dev (13)

@ljharb/eslint-config ^21.1.0@types/tape ^5.6.4aud ^2.0.4auto-changelog ^2.4.0eclint ^2.8.1eslint ^8.8.0evalmd ^0.0.19in-publish ^2.0.1npmignore ^0.3.1nyc ^10.3.2safe-publish-latest ^2.0.0tape ^5.7.4typescript next

Used by

Popular packages that depend on es-errors.

internal-slotnpm

ES spec-like internal slots

79.2M/wk1 dependentsMITTS
side-channel-weakmapnpm

Store information about any JS value in a side channel. Uses WeakMap if available.

78.5M/wk1 dependentsMITTS
stop-iteration-iteratornpm

Firefox 17-26 iterators throw a StopIteration object to indicate "done". This normalizes it.

69.2M/wk1 dependentsMITTS
side-channel-mapnpm

Store information about any JS value in a side channel, using a Map

0/wk2 dependentsMITTS
get-intrinsicnpm

Get and robustly cache all JS language-level intrinsics at first require time

0/wk8 dependentsMIT
regexp.prototype.flagsnpm

ES6 spec-compliant RegExp.prototype.flags shim.

0/wk1 dependentsMIT
side-channelnpm

Store information about any JS value in a side channel. Uses WeakMap if available.

0/wk3 dependentsMITTS
set-function-lengthnpm

Set a function's length property

0/wk1 dependentsMITTS
call-bind-apply-helpersnpm

Helper functions around Function call/apply/bind, for use in `call-bind`

0/wk3 dependentsMITTS
resolvenpm

resolve like require.resolve() on behalf of files asynchronously and synchronously

0/wk2 dependentsMIT
es-object-atomsnpm

ES Object-related atoms: Object, ToObject, RequireObjectCoercible

0/wk1 dependentsMITTS
define-data-propertynpm

Define a data property on an object. Will fall back to assignment in an engine without descriptors.

0/wk2 dependentsMITTS
set-function-namenpm

Set a function's name property

0/wk1 dependentsMITTS
es-set-tostringtagnpm

A helper to optimistically set Symbol.toStringTag, when possible.

0/wk1 dependentsMITTS
side-channel-listnpm

Store information about any JS value in a side channel, using a linked list

0/wk1 dependentsMITTS

Relationship graph

Dependencies (left) and dependents (right) of es-errors.

Frequently installed together

Release history

No releases in the last two years, typically about 0 days apart.

Recent versions of es-errors
VersionPublishedSizeLicense
1.3.0latest2 years ago12 KBMIT
1.2.12 years ago11 KBMIT
1.2.02 years ago11 KBMIT
1.1.02 years ago11 KBMIT
1.0.02 years ago10 KBMIT

Overview

es-errors is an npm package that a simple cache for a few of the JS Error constructors. It has 15 known dependents in the graph. The latest version is 1.3.0, released under the MIT license.

Who should use it

Teams working in the npm ecosystem who need a simple cache for a few of the JS Error constructors and value a focused solution.

When not to use it

Consider an alternative if you need to or if a more actively-maintained option better fits your npm stack.

Pros

  • Ships TypeScript type definitions.
  • Clear open-source license (MIT).

Cons

  • No significant drawbacks detected from available metadata.

Auto-generated from collected registry metadata. No external claims are inferred.

Maintainers

Keywords

Frequently asked questions

Should I use es-errors?

es-errors is usable, with caveats. Last published 948 days ago.

How do I install es-errors?

Run `npm install es-errors` to add es-errors to your npm project.

What license is es-errors released under?

es-errors is distributed under the MIT license.

How popular is es-errors?

npm does not publish download counts. Within PackageGraph's crawl, 15 known packages depend on es-errors.

Is es-errors still maintained?

The most recent release of es-errors (v1.3.0) was published 2 years ago.

Does es-errors run install scripts?

No. es-errors does not define preinstall, install, or postinstall scripts, so installing it does not execute publisher-supplied code.