Gathering detailed insights and metrics for @rooks/use-outside-click
Gathering detailed insights and metrics for @rooks/use-outside-click
npm install @rooks/use-outside-click
Typescript
Module System
Node Version
NPM Version
70.5
Supply Chain
83.7
Quality
75.9
Maintenance
100
Vulnerability
100
License
TypeScript (95.75%)
JavaScript (3.99%)
Shell (0.17%)
CSS (0.1%)
Love this project? Help keep it running — sponsor us today! 🚀
Total Downloads
1,016,524
Last Day
97
Last Week
1,723
Last Month
7,953
Last Year
114,568
MIT License
3,247 Stars
3,056 Commits
219 Forks
20 Watchers
34 Branches
72 Contributors
Updated on Feb 17, 2025
Minified
Minified + Gzipped
Latest Version
4.11.2
Package Id
@rooks/use-outside-click@4.11.2
Unpacked Size
8.26 kB
Size
3.32 kB
File Count
13
NPM Version
lerna/3.22.1/node@v12.22.1+x64 (linux)
Node Version
12.22.1
Cumulative downloads
Total Downloads
Last Day
98%
97
Compared to previous day
Last Week
-11.1%
1,723
Compared to previous week
Last Month
18.7%
7,953
Compared to previous month
Last Year
-22.7%
114,568
Compared to previous year
1
npm install rooks
or
yarn add rooks
Rooks is completely treeshakeable and if you use only 1 of the 50+ hooks in the package, only that hook will be bundled with your code. Your bundle will only contain the hooks that you need. Cheers!
Outside click(for a ref) event as hook for React.
npm install --save @rooks/use-outside-click
1import useOutsideClick from "@rooks/use-outside-click";
1function Demo() { 2 const pRef = useRef(); 3 function outsidePClick() { 4 alert("Clicked outside p"); 5 } 6 useOutsideClick(pRef, outsidePClick); 7 return ( 8 <div> 9 <p ref={pRef}>Click outside me</p> 10 </div> 11 ); 12} 13 14render(<Demo />);
No vulnerabilities found.
Reason
no dangerous workflow patterns detected
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
Found 3/17 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
dependency not pinned by hash detected -- score normalized to 0
Details
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Reason
40 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-02-10
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