Gathering detailed insights and metrics for scrollparent-q5
Gathering detailed insights and metrics for scrollparent-q5
Gathering detailed insights and metrics for scrollparent-q5
Gathering detailed insights and metrics for scrollparent-q5
npm install scrollparent-q5
Typescript
Module System
66.7
Supply Chain
78.3
Quality
75
Maintenance
100
Vulnerability
99.6
License
HTML (72.32%)
JavaScript (27.68%)
Total Downloads
21,004
Last Day
1
Last Week
2
Last Month
3
Last Year
46
58 Stars
25 Commits
13 Forks
3 Watching
1 Branches
4 Contributors
Minified
Minified + Gzipped
Latest Version
2.0.1
Package Id
scrollparent-q5@2.0.1
Unpacked Size
9.45 kB
Size
2.90 kB
File Count
7
Cumulative downloads
Total Downloads
Last day
0%
1
Compared to previous day
Last week
0%
2
Compared to previous week
Last month
0%
3
Compared to previous month
Last year
-94.8%
46
Compared to previous year
No dependencies detected.
A function to get the scrolling parent of an html element.
1npm install scrollparent --save
1var Scrollparent = require("scrollparent"); 2 3Scrollparent(document.getElementById("content")) // HTMLHtmlElement or HTMLBodyElement as appropriate
1var Scrollparent = require("scrollparent"); 2 3Scrollparent(document.getElementById("inside-a-scrolling-div")) // HTMLDivElement
Internally, the root scrolling element is determined in this library as the result of
1document.scrollingElement || document.documentElement;
This should give a usable result in most browsers today
but if you want to ensure full support
you should use a document.scrollingElement
polyfill such as
this one.
MIT
No vulnerabilities found.
Reason
no dangerous workflow patterns detected
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
1 existing vulnerabilities detected
Details
Reason
dependency not pinned by hash detected -- score normalized to 3
Details
Reason
Found 4/24 approved changesets -- score normalized to 1
Reason
detected GitHub workflow tokens with excessive permissions
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