event-target-shim
npmv6.0.2An 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.
Runtime packages this one declares itself.
Distinct packages in the full runtime tree, deduplicated the way a package manager would.
Unpacked size of this package plus its entire runtime tree.
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 }
);
event-target-shim vs the alternatives
Packages solving a similar problem in the npm ecosystem, compared on the signals that drive an adoption decision.
| Package | Weekly downloads | Dependents | License | Last release |
|---|---|---|---|---|
| event-target-shimthis page | 0 | 2 | MIT | 5 years ago |
| abort-controller | 0 | 4 | MIT | 1 day ago |
| jsdom | 0 | 20 | MIT | 1 day ago |
| happy-dom | 0 | 6 | MIT | 1 day ago |
| tr46 | 192.6M | 1 | MIT | 1 day ago |
| node-fetch | 172.9M | 9 | MIT | 1 day ago |
Dependencies
Declared by event-target-shim v6.0.2. Runtime dependencies are installed with the package; dev dependencies are not.
Dev (45)
Used by
Popular packages that depend on event-target-shim.
Relationship graph
Dependencies (left) and dependents (right) of event-target-shim.
Frequently installed together
An extremely fast JavaScript and CSS bundler and minifier.
An HTTP/1.1 client, written from scratch for Node.js
An AST-based pattern checker for JavaScript.
TypeScript execution environment and REPL for node.js, with source map support
TypeScript definitions for node
Polyfill for the URLPattern API
This plugin transforms ES2015 modules to CommonJS
Release history
No releases in the last two years, typically about 29 days apart.
| Version | Published | Size | License |
|---|---|---|---|
| 6.0.2latest | 5 years ago | 381 KB | MIT |
| 6.0.1 | 5 years ago | 7.4 KB | MIT |
| 6.0.0 | 5 years ago | 361 KB | MIT |
| 5.0.1 | 7 years ago | 184 KB | MIT |
| 5.0.0 | 7 years ago | 184 KB | MIT |
| 5.0.0-beta.0 | 7 years ago | 185 KB | MIT |
| 4.0.3 | 7 years ago | 178 KB | MIT |
| 4.0.2 | 7 years ago | 178 KB | MIT |
| 4.0.1 | 7 years ago | 178 KB | MIT |
| 4.0.0 | 7 years ago | 178 KB | MIT |
| 3.0.2 | 8 years ago | 156 KB | MIT |
| 3.0.1 | 8 years ago | — | MIT |
| 3.0.0 | 9 years ago | — | MIT |
| 2.0.0 | 9 years ago | — | MIT |
| 1.1.1 | 10 years ago | — | MIT |
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
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.