Gathering detailed insights and metrics for ember-cli-element-closest-polyfill
Gathering detailed insights and metrics for ember-cli-element-closest-polyfill
Gathering detailed insights and metrics for ember-cli-element-closest-polyfill
Gathering detailed insights and metrics for ember-cli-element-closest-polyfill
Includes a polyfill for closest if needed
npm install ember-cli-element-closest-polyfill
Typescript
Module System
Min. Node Version
Node Version
NPM Version
JavaScript (83.86%)
HTML (15.7%)
Handlebars (0.44%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
MIT License
4 Stars
26 Commits
1 Watchers
42 Branches
3 Contributors
Updated on Nov 05, 2020
Latest Version
0.0.2
Package Id
ember-cli-element-closest-polyfill@0.0.2
Unpacked Size
6.37 kB
Size
2.93 kB
File Count
5
NPM Version
6.14.8
Node Version
10.16.3
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
28
Ember-CLI addon to add a polyfill for the Element.closest()
property, based on element-closest.
Internet Explorer 11 and lower do not support closest()
.
See full browser support details.
The included polyfill also polyfills #Element.matches
, which is
widely supported but often vendor-prefixed.
1ember install ember-cli-element-closest-polyfill
The addon will import the polyfill by default to your vendor.js
.
Beginning with version 2.13 Ember CLI supports a Targets feature,
allowing you to specify the list of browsers your app should support like last 1 Chrome versions
or ie 11
.
If the caniuse database indicates that all browsers you want to support fully support the feature, then the
polyfill will not be included into your build, to not increase your bundle size.
This should also work as a nested addon of another addon, just include it as a dependency
. So if your addon
makes use of closest()
, you can use this to make sure the API is available. Given the above mentioned targets feature,
it will have no negative impact on the consuming app should the polyfill not be needed.
This addon was inspired by a similar polyfill addon: https://github.com/kaliber5/ember-cli-classlist-polyfill
This project is licensed under the MIT License.
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
Found 0/12 approved changesets -- score normalized to 0
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
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
108 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-07-14
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