Gathering detailed insights and metrics for @fcannizzaro/react-use-cookie-watcher
Gathering detailed insights and metrics for @fcannizzaro/react-use-cookie-watcher
Gathering detailed insights and metrics for @fcannizzaro/react-use-cookie-watcher
Gathering detailed insights and metrics for @fcannizzaro/react-use-cookie-watcher
react hook to watch browser cookies
npm install @fcannizzaro/react-use-cookie-watcher
Typescript
Module System
Node Version
NPM Version
TypeScript (100%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
MIT License
7 Stars
35 Commits
1 Watchers
7 Branches
1 Contributors
Updated on Dec 31, 2022
Latest Version
2.0.6
Package Id
@fcannizzaro/react-use-cookie-watcher@2.0.6
Unpacked Size
5.07 kB
Size
2.49 kB
File Count
6
NPM Version
8.18.0
Node Version
16.15.0
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
No dependencies detected.
react hook to watch browser cookies
1npm i @fcannizzaro/react-use-cookie-watcher 2# yarn add @fcannizzaro/react-use-cookie-watcher 3# pnpm add @fcannizzaro/react-use-cookie-watcher
1import React, {Component} from 'react' 2 3import {useCookieWatcher, useCookie} from '@fcannizzaro/react-use-cookie-watcher' 4 5const Example = () => { 6 7 // cookie existence 8 const isNotExpired = useCookieWatcher('react-cookie', { 9 // check for changes every 500ms 10 checkEvery: 500 11 }); 12 13 // cookie value (updated on change) 14 const value = useCookieWatcher('react-cookie', { 15 valueOnly: 500 16 }); 17 18 // cookie value (at call time) 19 const cookie = useCookie('react-cookie'); 20 21 return <div> 22 <p>cookie {isNotExpired ? 'found' : 'not found'}</p> 23 <p>cookie value = {value}</p> 24 </div> 25 26}
useCookieWatcher
now can return a boolean value or a string value (if valueOnly
is set to true
)useCookieWatcher
now accepts an options object as second parameterMIT © fcannizzaro
No vulnerabilities found.
Reason
no dangerous workflow patterns detected
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
Found 0/14 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
detected GitHub workflow tokens with excessive permissions
Details
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
project is not fuzzed
Details
Reason
security policy file not detected
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
26 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