Gathering detailed insights and metrics for is-dom4-supported
Gathering detailed insights and metrics for is-dom4-supported
Gathering detailed insights and metrics for is-dom4-supported
Gathering detailed insights and metrics for is-dom4-supported
npm install is-dom4-supported
Typescript
Module System
Min. Node Version
Node Version
NPM Version
70.7
Supply Chain
92.1
Quality
75.2
Maintenance
100
Vulnerability
100
License
JavaScript (88.24%)
HTML (11.76%)
Total Downloads
2,203
Last Day
1
Last Week
1
Last Month
4
Last Year
72
1 Stars
66 Commits
2 Watching
208 Branches
1 Contributors
Latest Version
2.0.1
Package Id
is-dom4-supported@2.0.1
Size
7.15 kB
NPM Version
3.10.1
Node Version
6.2.2
Cumulative downloads
Total Downloads
Last day
0%
1
Compared to previous day
Last week
0%
1
Compared to previous week
Last month
0%
4
Compared to previous month
Last year
-36.8%
72
Compared to previous year
does this JavaScript environment conform to DOM 4?
I wanted my web apps to be able to detect support for Polymer and the WebComponents poly-fills.
Combined with an ECMAScript 5 feature-detect, this project ought to answer the following questions:
I've checked and confirmed that this project tests all the parts of DOM 4 that WebComponents.js (lite) depends upon (plus some other things I'm interested in).
I've manually tested in a range of environments:
true
: Chrome (43), (Mobile) Safari (8), Firefox (38), Internet Explorer
(10, 11), Edge
false
: Internet Explorer (6, 7, 8, 9)
1var isDOM4Supported = require('is-dom4-supported'); 2console.log(isDOM4Supported()); // `true` or `false`
1<script src="dist/index.js"></script> 2<script> 3console.log(isDOM4Supported()); // `true` or `false` 4</script>
WebComponents.js poly-fills CustomEvent
and MutationObserver
, so you'll
probably want to ignore the results for these tests:
1var isDOM4Supported = require('is-dom4-supported'); 2console.log(isDOM4Supported(null, { 3 ignore: ['dom4.customevent', 'dom4.mutationobserver'] 4})); // `true` or `false`
isDOM4Supported(el, options)
Element
} [el] a DOM Element to run tests againstSupportedOptions
} [options]boolean
|Object
} true|false unless returnObject is trueThis project creates a temporary unattached DOM Element if you do not provide one. If you are performing other tests against DOM Elements, you might consider reusing the same one, hence the optional parameter.
The report Object
contains the results of individual tests prefixed by their DOM level (e.g. "dom4.customevent"),
as well as summary properties that are true
if all preceding properties are true
(e.g. "dom4").
Object
} SupportedOptionsstring[]
} ignore - array of tests to ignore for summariesboolean
} returnObject - if true, function returns a detailed ObjectNo vulnerabilities found.
Reason
no binaries found in the repo
Reason
0 existing vulnerabilities detected
Reason
license file detected
Details
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
Score
Last Scanned on 2024-12-23
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