</>PackageGraphPackageGraph

event-target-shim

npmv6.0.2

An implementation of WHATWG EventTarget interface.

Not recommended for new projects

No — event-target-shim should not be adopted for new projects. Last published 2071 days ago.

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

    No download data reported for this package yet.

  • FMaintenance: grade F, Failing.

    Last published 2071 days ago.

  • AWeight: grade A, Excellent.

    Zero runtime dependencies, about 381 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 event-target-shim 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.

381 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 >=10.13.0
Module format
ESM + CommonJS
TypeScript
No bundled types
Install scripts
None

Quick start

A usage example from the event-target-shim README.

import { EventTarget, Event } from "event-target-shim";

// constructor (was added to the standard on 8 Jul 2017)
const myNode = new EventTarget();

// passive flag (was added to the standard on 6 Jan 2016)
myNode.addEventListener(
  "hello",
  (e) => {
    e.preventDefault(); // ignored and print warning on console.
  },
  { passive: true }
);
Example truncated — see the full README.

event-target-shim vs the alternatives

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

PackageWeekly downloadsDependentsLicenseLast release
event-target-shimthis page02MIT5 years ago
abort-controller04MIT1 day ago
jsdom020MIT1 day ago
happy-dom06MIT1 day ago
tr46192.6M1MIT1 day ago
node-fetch172.9M9MIT1 day ago

Dependencies

Declared by event-target-shim v6.0.2. Runtime dependencies are installed with the package; dev dependencies are not.

Dev (45)

@babel/core ^7.12.10@babel/plugin-transform-runtime ^7.12.10@babel/preset-env ^7.12.11@mysticatea/eslint-plugin ^13.0.0@mysticatea/spy ^0.1.2@mysticatea/tools ^0.1.1@rollup/plugin-babel ^5.2.2@rollup/plugin-typescript ^8.1.0@types/istanbul-lib-coverage ^2.0.3@types/istanbul-lib-report ^3.0.0@types/istanbul-lib-source-maps ^4.0.1@types/istanbul-reports ^3.0.0@types/mocha ^8.2.0@types/rimraf ^3.0.0assert ^2.0.0babel-loader ^8.2.2babel-plugin-istanbul ^6.0.0buffer ^6.0.3chalk ^4.1.0codecov ^3.8.1cpx ^1.5.0dts-bundle-generator ^5.5.0eslint ^7.15.0istanbul-lib-coverage ^3.0.0istanbul-lib-report ^3.0.0istanbul-lib-source-maps ^4.0.0istanbul-reports ^3.0.2mocha ^7.2.0npm-run-all ^4.1.5path-browserify ^1.0.1playwright ^1.7.0prettier ~2.2.1process ^0.11.10rimraf ^3.0.2rollup ^2.35.1rollup-plugin-terser ^7.0.2rollup-watch ^4.3.1stream-browserify ^3.0.0ts-loader ^8.0.12ts-node ^9.1.1tslib ^2.0.3typescript ~4.1.3url ^0.11.0util ^0.12.3webpack ^5.11.0

Used by

Popular packages that depend on event-target-shim.

Relationship graph

Dependencies (left) and dependents (right) of event-target-shim.

@edge-runtime/pri…abort-controllerevent-target-shim
event-target-shim dependencies dependents

Frequently installed together

Release history

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

Recent versions of event-target-shim
VersionPublishedSizeLicense
6.0.2latest5 years ago381 KBMIT
6.0.15 years ago7.4 KBMIT
6.0.05 years ago361 KBMIT
5.0.17 years ago184 KBMIT
5.0.07 years ago184 KBMIT
5.0.0-beta.07 years ago185 KBMIT
4.0.37 years ago178 KBMIT
4.0.27 years ago178 KBMIT
4.0.17 years ago178 KBMIT
4.0.07 years ago178 KBMIT
3.0.28 years ago156 KBMIT
3.0.18 years agoMIT
3.0.09 years agoMIT
2.0.09 years agoMIT
1.1.110 years agoMIT

Overview

event-target-shim is an npm package that an implementation of WHATWG EventTarget interface. It has 2 known dependents in the graph. The latest version is 6.0.2, released under the MIT license.

Who should use it

Teams working in the npm ecosystem who need an implementation of WHATWG EventTarget interface and value a focused solution.

When not to use it

Consider an alternative if you need to minimize your dependency tree, have first-class TypeScript types out of the box, or if a more actively-maintained option better fits your npm stack.

Pros

  • Clear open-source license (MIT).

Cons

  • Large dependency tree (45 direct dependencies) increases install size and audit surface.
  • No bundled TypeScript types (may require a separate @types package).

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

Maintainers

Keywords

Funding

Frequently asked questions

Should I use event-target-shim?

No — event-target-shim should not be adopted for new projects. Last published 2071 days ago.

How do I install event-target-shim?

Run `npm install event-target-shim` to add event-target-shim to your npm project.

What license is event-target-shim released under?

event-target-shim is distributed under the MIT license.

How popular is event-target-shim?

npm does not publish download counts. Within PackageGraph's crawl, 2 known packages depend on event-target-shim.

Is event-target-shim still maintained?

The most recent release of event-target-shim (v6.0.2) was published 5 years ago.

Does event-target-shim run install scripts?

No. event-target-shim does not define preinstall, install, or postinstall scripts, so installing it does not execute publisher-supplied code.