Gathering detailed insights and metrics for event-target-shim-es5
Gathering detailed insights and metrics for event-target-shim-es5
Gathering detailed insights and metrics for event-target-shim-es5
Gathering detailed insights and metrics for event-target-shim-es5
npm install event-target-shim-es5
Typescript
Module System
Min. Node Version
Node Version
NPM Version
JavaScript (76.08%)
HTML (23.92%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
2 Stars
56 Commits
1 Forks
2 Watchers
7 Branches
1 Contributors
Updated on Mar 01, 2022
Latest Version
2.0.0
Package Id
event-target-shim-es5@2.0.0
Size
10.52 kB
NPM Version
6.14.13
Node Version
14.17.3
Published on
Jul 20, 2021
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
9
1
1
This package is based on event-target-shim
. Although the original package contains an ES5 bundle, it did not contains an ES5 module. Importing the module directly or indirectly may break web apps running on ES5 browsers.
On install, this package will transpile your version of event-target-shim
to make it compatible with ES5 browsers.
Package authors should consider importing this package instead of event-target-shim
, so your packages will not break your users due to having event-target-shim
as a transient dependency.
To install in your project, run:
1npm install event-target-shim event-target-shim-es5
In your code:
1import EventTarget, { defineEventAttribute } from 'event-target-shim-es5'; 2 3class YourComponent extends EventTarget { 4 handleClick() { 5 this.dispatchEvent(new Event('click')); 6 } 7} 8 9defineEventAttribute(YourComponent.prototype, 'click');
On postinstall
, this package will run Babel and Webpack to transpile event-target-shim
into a single file.
This package peer-depends on event-target-shim
. Thus, you can select your own version of event-target-shim
.
event-target-shim
When you update event-target-shim
, re-run npm install event-target-shim-es5
to get the latest package transpiled.
Instead of importing this package, there are alternative workarounds you can use.
You can copy the source code of event-target-shim
into your web app and use your build pipeline transpile the original package.
When copying, be sure to include the original license and continue to depends on the package to make sure npm audit
will scan for vulnerabilities.
Webpack do not transpile code under /node_modules/
unless specified explicitly. You can modify webpack.config.js
to include /node_modules/event-target-shim/
and use babel-loader
to transpile it on-the-fly.
Like us? Star us.
Want to make it better? File us an issue.
Don't like something you see? Submit a pull request.
No vulnerabilities found.
Reason
no dangerous workflow patterns detected
Reason
no binaries found in the repo
Reason
dependency not pinned by hash detected -- score normalized to 1
Details
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
Found 0/26 approved changesets -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
security policy file not detected
Details
Reason
license file not detected
Details
Reason
project is not fuzzed
Details
Reason
Project has not signed or included provenance with any releases.
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Reason
12 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-07-07
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More