Gathering detailed insights and metrics for use-countdown-hook
Gathering detailed insights and metrics for use-countdown-hook
Gathering detailed insights and metrics for use-countdown-hook
Gathering detailed insights and metrics for use-countdown-hook
npm install use-countdown-hook
Module System
Min. Node Version
Typescript Support
Node Version
NPM Version
26 Commits
2 Forks
1 Watching
1 Branches
1 Contributors
Updated on 29 Apr 2021
TypeScript (58.06%)
JavaScript (41.94%)
Cumulative downloads
Total Downloads
Last day
-80%
1
Compared to previous day
Last week
-75%
2
Compared to previous week
Last month
75%
21
Compared to previous month
Last year
-14.6%
216
Compared to previous year
1
Dead simple React countdown hook which will return the remain time in the dd:hh:mm:ss format implemented by requestAnimationFrame
简体中文 | English
1yarn add use-countdown-hook
or
1npm install use-countdown-hook
1import { useCountDown } from 'use-countdown-hook' 2 3const onTimeOver = useCallback( 4 () => { 5 console.log('time over...') 6 }, 7[]) 8 9const [{ dd, hh, mm, ss }, { start, pause }] = useCountDown(60 * 1000, { 10 startImmediately: false, 11 onTimeOver 12}) 13 14return ( 15 <> 16 <p> 17 <span>{ dd }Days</span> 18 <span>{ hh }Hours</span> 19 <span>{ mm }Minutes</span> 20 <span>{ ss }Seconds</span> 21 </p> 22 <button onClick={ start }>Start</button> 23 <button onClick={ pause }>Pause</button> 24 </> 25)
No vulnerabilities found.
Reason
no dangerous workflow patterns detected
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
Found 0/26 approved changesets -- score normalized to 0
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 SAST tool detected
Details
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
branch protection not enabled on development/release branches
Details
Reason
68 existing vulnerabilities detected
Details
Score
Last Scanned on 2024-11-18
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