Installations
npm install react-countdown
Developer
ndresx
Developer Guide
Module System
CommonJS
Min. Node Version
Typescript Support
Yes
Node Version
16.0.0
NPM Version
8.19.2
Statistics
762 Stars
98 Commits
71 Forks
7 Watching
9 Branches
7 Contributors
Updated on 25 Nov 2024
Languages
TypeScript (92.88%)
JavaScript (6.89%)
HTML (0.22%)
Total Downloads
Cumulative downloads
Total Downloads
30,727,100
Last day
-3.7%
36,738
Compared to previous day
Last week
5.6%
197,146
Compared to previous week
Last month
10.9%
811,395
Compared to previous month
Last year
8%
9,091,100
Compared to previous year
Daily Downloads
Weekly Downloads
Monthly Downloads
Yearly Downloads
Dependencies
1
Dev Dependencies
29
React <Countdown />
A customizable countdown component for React.
Getting Started
You can install the module via npm
or yarn
:
1npm install react-countdown --save
1yarn add react-countdown
Motivation
As part of a small web app at first, the idea was to separate the countdown component from the main package to combine general aspects of the development with React, testing with Jest and more things that relate to publishing a new Open Source project.
Examples
Here are some examples which you can try directly online. You can also clone this repo and explore some more examples in there by running yarn start
within the examples
folder.
Basic Usage
A very simple and minimal example of how to set up a countdown that counts down from 10 seconds.
1import React from 'react'; 2import ReactDOM from 'react-dom'; 3import Countdown from 'react-countdown'; 4 5ReactDOM.render( 6 <Countdown date={Date.now() + 10000} />, 7 document.getElementById('root') 8);
Custom & Conditional Rendering
In case you want to change the output of the component or want to signal that the countdown's work is done, you can do this by either using the onComplete
callback, a
custom renderer
, or by specifying a React child within <Countdown></Countdown>
, which will only be shown once the countdown is complete.
Using a React Child for the Completed State
1import React from 'react'; 2import ReactDOM from 'react-dom'; 3import Countdown from 'react-countdown'; 4 5// Random component 6const Completionist = () => <span>You are good to go!</span>; 7 8ReactDOM.render( 9 ( 10 <Countdown date={Date.now() + 5000}> 11 <Completionist /> 12 </Countdown> 13 ), 14 document.getElementById('root') 15);
Custom Renderer with Completed Condition
1import React from 'react'; 2import ReactDOM from 'react-dom'; 3import Countdown from 'react-countdown'; 4 5// Random component 6const Completionist = () => <span>You are good to go!</span>; 7 8// Renderer callback with condition 9const renderer = ({ hours, minutes, seconds, completed }) => { 10 if (completed) { 11 // Render a completed state 12 return <Completionist />; 13 } else { 14 // Render a countdown 15 return <span>{hours}:{minutes}:{seconds}</span>; 16 } 17}; 18 19ReactDOM.render( 20 <Countdown 21 date={Date.now() + 5000} 22 renderer={renderer} 23 />, 24 document.getElementById('root') 25);
Countdown in Milliseconds
Here is an example with a countdown of 10 seconds that displays the total time difference in milliseconds. In order to display the milliseconds appropriately, the intervalDelay
value needs to be lower than 1000
ms and a precision
of 1
to 3
should be used. Last but not least, a simple renderer
callback needs to be set up.
1import React from 'react'; 2import ReactDOM from 'react-dom'; 3import Countdown from 'react-countdown'; 4 5ReactDOM.render( 6 <Countdown 7 date={Date.now() + 10000} 8 intervalDelay={0} 9 precision={3} 10 renderer={props => <div>{props.total}</div>} 11 />, 12 document.getElementById('root') 13);
Props
Name | Type | Default | Description |
---|---|---|---|
date | Date|string|number | required | Date or timestamp in the future |
key | string|number | undefined | React key ; can be used to restart the countdown |
daysInHours | boolean | false | Days are calculated as hours |
zeroPadTime | number | 2 | Length of zero-padded output, e.g.: 00:01:02 |
zeroPadDays | number | zeroPadTime | Length of zero-padded days output, e.g.: 01 |
controlled | boolean | false | Hands over the control to its parent(s) |
intervalDelay | number | 1000 | Interval delay in milliseconds |
precision | number | 0 | The precision on a millisecond basis |
autoStart | boolean | true | Countdown auto-start option |
overtime | boolean | false | Counts down to infinity |
children | any | null | A React child for the countdown's completed state |
renderer | function | undefined | Custom renderer callback |
now | function | Date.now | Alternative handler for the current date |
onMount | function | undefined | Callback when component mounts |
onStart | function | undefined | Callback when countdown starts |
onPause | function | undefined | Callback when countdown pauses |
onStop | function | undefined | Callback when countdown stops |
onTick | function | undefined | Callback on every interval tick (controlled = false ) |
onComplete | function | undefined | Callback when countdown ends |
date
The date
prop is the only required one and can be a Date
object, string
, or timestamp in the future. By default, this date is compared with the current date, or a custom handler defined via now
.
Valid values can be (and more):
'2020-02-01T01:02:03'
//Date
time string format1580518923000
// Timestamp in millisecondsnew Date(1580518923000)
//Date
object
key
This is one of React's internal component props to help identify elements throughout the reconciliation process. It can be used to restart the countdown by
passing in a new string
or number
value.
Please see official React docs for more information about keys.
daysInHours
Defines whether the time of day should be calculated as hours rather than separated days.
controlled
Can be useful if the countdown's interval and/or date control should be handed over to the parent. In case controlled
is true
, the
provided date
will be treated as the countdown's actual time difference and not be compared to now
anymore.
zeroPadTime
This option defaults to 2
in order to display the common format 00:00:00
instead of 0:0:0
. If the value is higher than 2
, only the hours part (see zeroPadDays
for days) will be zero-padded while it stays at 2
for minutes as well as seconds. If the value is lower, the output won't be zero-padded like the example before is showing.
zeroPadDays
Defaults to zeroPadTime
. It works the same way as zeroPadTime
does, just for days.
intervalDelay
Since this countdown is based on date comparisons, the default value of 1000
milliseconds is probably enough for most scenarios and doesn't need to be changed.
However, if it needs to be more precise, the intervalDelay
can be set to something lower - down to 0
, which would, for example, allow showing the milliseconds in a more fancy way (currently only possible through a custom renderer
).
precision
In certain cases, you might want to base off the calculations on a millisecond basis. The precision
prop, which defaults to 0
, can be used to refine this calculation. While the default value simply strips the milliseconds part (e.g., 10123
ms => 10000
ms), a precision of 3
leads to 10123
ms.
autoStart
Defines whether the countdown should start automatically or not. Defaults to true
.
overtime
Defines whether the countdown can go into overtime by extending its lifetime past the targeted endpoint. Defaults to false
.
When set to true
, the countdown timer won't stop when hitting 0, but instead becomes negative and continues to run unless paused/stopped. The onComplete
callback would still get triggered when the initial countdown phase completes.
Please note that the
children
prop will be ignored ifovertime
istrue
. Also, when using a customrenderer
, you'll have to check one of the render props, e.g.,total
, orcompleted
, to render the overtime output.
children
This component also considers the child that may live within the <Countdown></Countdown>
element, which, in case it's available, replaces the countdown's component state once it's complete. Moreover, an additional prop called countdown
is set and contains data similar to what the renderer
callback would receive. Here's an example that showcases its usage.
Please note that the
children
prop will be ignored if a customrenderer
is defined.
renderer
The component's raw render output is kept very simple.
For more advanced countdown displays, a custom renderer
callback can be defined to return a new React element. It receives the following render props as the first argument.
Render Props
The render props object consists of the current time delta object, the countdown's api
, the component props
, and last but not least, a formatted
object.
1{ 2 total: 0, 3 days: 0, 4 hours: 0, 5 minutes: 0, 6 seconds: 0, 7 milliseconds: 0, 8 completed: true, 9 api: { ... }, 10 props: { ... }, 11 formatted: { ... } 12}
Please note that a defined custom
renderer
will ignore thechildren
prop.
now
If the current date and time (determined via a reference to Date.now
) is not the right thing to compare with for you, a reference to a custom function that returns a similar dynamic value could be provided as an alternative.
onMount
onMount
is a callback and triggered when the countdown mounts. It receives a time delta object as the first argument.
onStart
onStart
is a callback and triggered whenever the countdown is started (including first-run). It receives a time delta object as the first argument.
onPause
onPause
is a callback and triggered every time the countdown is paused. It receives a time delta object as the first argument.
onStop
onStop
is a callback and triggered every time the countdown is stopped. It receives a time delta object as the first argument.
onTick
onTick
is a callback and triggered every time a new period is started, based on what the intervalDelay
's value is. It only gets triggered when the countdown's controlled
prop is set to false
, meaning that the countdown has full control over its interval. It receives a time delta object as the first argument.
onComplete
onComplete
is a callback and triggered whenever the countdown ends. In contrast to onTick
, the onComplete
callback also gets triggered in case controlled
is set to true
. It receives a time delta object as the first argument and a boolean
as a second argument, indicating whether the countdown transitioned into the completed state (false
) or completed on start (true
).
API Reference
The countdown component exposes a simple API through the getApi()
function that can be accessed via component ref
. It is also part (api
) of the render props passed into renderer
if needed. Here's an example of how to use it.
start()
Starts the countdown in case it is paused/stopped or needed when autoStart
is set to false
.
pause()
Pauses the running countdown. This only works as expected if the controlled
prop is set to false
because calcTimeDelta
calculates an offset time internally.
stop()
Stops the countdown. This only works as expected if the controlled
prop is set to false
because calcTimeDelta
calculates an offset time internally.
isPaused()
Returns a boolean
for whether the countdown has been paused or not.
isStopped()
Returns a boolean
for whether the countdown has been stopped or not.
isCompleted()
Returns a boolean
for whether the countdown has been completed or not.
Please note that this will always return
false
ifovertime
istrue
. Nevertheless, an into overtime running countdown's completed state can still be looking at the time delta object'scompleted
value.
Helpers
This module also exports three simple helper functions, which can be utilized to build your own countdown custom renderer
.
1import Countdown, { zeroPad, calcTimeDelta, formatTimeDelta } from 'react-countdown';
zeroPad(value, [length = 2])
The zeroPad
function transforms and returns a given value
with padded zeros depending on the length
. The value
can be a string
or number
, while the length
parameter can be a number
, defaulting to 2
. Returns the zero-padded string
, e.g., zeroPad(5)
=> 05
.
1const renderer = ({ hours, minutes, seconds }) => ( 2 <span> 3 {zeroPad(hours)}:{zeroPad(minutes)}:{zeroPad(seconds)} 4 </span> 5);
calcTimeDelta(date, [options])
calcTimeDelta
calculates the time difference between a given end date
and the current date (now
). It returns, similar to the renderer
callback, a custom object (also referred to as countdown time delta object) with the following time-related data:
1{ total, days, hours, minutes, seconds, milliseconds, completed }
The total
value is the absolute time difference in milliseconds, whereas the other time-related values contain their relative portion of the current time difference. The completed
value signalizes whether the countdown reached its initial end or not.
The calcTimeDelta
function accepts two arguments in total; only the first one is required.
date
Date or timestamp representation of the end date. See date
prop for more details.
options
The second argument consists of the following optional keys.
-
now = Date.now
Alternative function for returning the current date, also seenow
. -
precision = 0
Theprecision
on a millisecond basis. -
controlled = false
Defines whether the calculated value is provided in acontrolled
environment as the time difference or not. -
offsetTime = 0
Defines the offset time that gets added to the start time; only considered if controlled is false. -
overtime = false
Defines whether the time delta can go intoovertime
and become negative or not. When set totrue
, thetotal
could become negative, at which pointcompleted
will still be set totrue
.
formatTimeDelta(timeDelta, [options])
formatTimeDelta
formats a given countdown time delta object. It returns the formatted portion of it, equivalent to:
1{ 2 days: '00', 3 hours: '00', 4 minutes: '00', 5 seconds: '00', 6}
This function accepts two arguments in total; only the first one is required.
timeDelta
Time delta object, e.g., returned by calcTimeDelta
.
options
The options
object consists of the following three component props and is used to customize the time delta object's formatting:
FAQ
Why does my countdown reset on every re-render?
A common reason for this is that the date
prop gets passed directly into the component without persisting it in any way.
In order to avoid this from happening, it should be stored in a place that persists throughout lifecycle changes, for example, in the component's local state
.
Why aren't my values formatted when using the custom renderer
?
The renderer
callback gets called with a time delta object that also consists of a formatted
object which holds these formatted values.
Why do I get this error "Warning: Text content did not match..."
?
This could have something to do with server-side rendering and that the countdown already runs on the server-side, resulting in a timestamp discrepancy between the client and the server. In this case, it might be worth checking https://reactjs.org/docs/dom-elements.html#suppresshydrationwarning.
Alternatively, you could try to set autoStart
to false
and start the countdown through the API once it's available on the client. Here are some related issues that might help in fixing this problem.
Contributing
Contributions of any kind are very welcome. Read more in our contributing guide about how to report bugs, create pull requests, and other development-related topics.
License
MIT
No vulnerabilities found.
Reason
no dangerous workflow patterns detected
Reason
no binaries found in the repo
Reason
license file detected
Details
- Info: project has a license file: LICENSE:0
- Info: FSF or OSI recognized license: MIT License: LICENSE:0
Reason
SAST tool detected but not run on all commits
Details
- Info: SAST configuration detected: CodeQL
- Warn: 4 commits out of 29 are checked with a SAST tool
Reason
Found 3/11 approved changesets -- score normalized to 2
Reason
0 commit(s) and 3 issue activity found in the last 90 days -- score normalized to 2
Reason
detected GitHub workflow tokens with excessive permissions
Details
- Info: jobLevel 'contents' permission set to 'read': .github/workflows/codeql.yml:29
- Info: jobLevel 'actions' permission set to 'read': .github/workflows/codeql.yml:28
- Warn: no topLevel permission defined: .github/workflows/codeql.yml:1
- Warn: no topLevel permission defined: .github/workflows/main.yml:1
- Info: no jobLevel write permissions found
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/codeql.yml:42: update your workflow using https://app.stepsecurity.io/secureworkflow/ndresx/react-countdown/codeql.yml/master?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/codeql.yml:46: update your workflow using https://app.stepsecurity.io/secureworkflow/ndresx/react-countdown/codeql.yml/master?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/codeql.yml:57: update your workflow using https://app.stepsecurity.io/secureworkflow/ndresx/react-countdown/codeql.yml/master?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/codeql.yml:71: update your workflow using https://app.stepsecurity.io/secureworkflow/ndresx/react-countdown/codeql.yml/master?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/main.yml:118: update your workflow using https://app.stepsecurity.io/secureworkflow/ndresx/react-countdown/main.yml/master?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/main.yml:121: update your workflow using https://app.stepsecurity.io/secureworkflow/ndresx/react-countdown/main.yml/master?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/main.yml:129: update your workflow using https://app.stepsecurity.io/secureworkflow/ndresx/react-countdown/main.yml/master?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/main.yml:137: update your workflow using https://app.stepsecurity.io/secureworkflow/ndresx/react-countdown/main.yml/master?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/main.yml:15: update your workflow using https://app.stepsecurity.io/secureworkflow/ndresx/react-countdown/main.yml/master?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/main.yml:18: update your workflow using https://app.stepsecurity.io/secureworkflow/ndresx/react-countdown/main.yml/master?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/main.yml:26: update your workflow using https://app.stepsecurity.io/secureworkflow/ndresx/react-countdown/main.yml/master?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/main.yml:48: update your workflow using https://app.stepsecurity.io/secureworkflow/ndresx/react-countdown/main.yml/master?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/main.yml:51: update your workflow using https://app.stepsecurity.io/secureworkflow/ndresx/react-countdown/main.yml/master?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/main.yml:59: update your workflow using https://app.stepsecurity.io/secureworkflow/ndresx/react-countdown/main.yml/master?enable=pin
- Warn: third-party GitHubAction not pinned by hash: .github/workflows/main.yml:77: update your workflow using https://app.stepsecurity.io/secureworkflow/ndresx/react-countdown/main.yml/master?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/main.yml:87: update your workflow using https://app.stepsecurity.io/secureworkflow/ndresx/react-countdown/main.yml/master?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/main.yml:90: update your workflow using https://app.stepsecurity.io/secureworkflow/ndresx/react-countdown/main.yml/master?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/main.yml:98: update your workflow using https://app.stepsecurity.io/secureworkflow/ndresx/react-countdown/main.yml/master?enable=pin
- Info: 0 out of 17 GitHub-owned GitHubAction dependencies pinned
- Info: 0 out of 1 third-party GitHubAction dependencies pinned
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
- Warn: no security policy file detected
- Warn: no security file to analyze
- Warn: no security file to analyze
- Warn: no security file to analyze
Reason
project is not fuzzed
Details
- Warn: no fuzzer integrations found
Reason
84 existing vulnerabilities detected
Details
- Warn: Project is vulnerable to: GHSA-67hx-6x53-jw92
- Warn: Project is vulnerable to: GHSA-22h7-7wwg-qmgg
- Warn: Project is vulnerable to: GHSA-c429-5p7v-vgjp
- Warn: Project is vulnerable to: GHSA-6chw-6frg-f759
- Warn: Project is vulnerable to: GHSA-whgm-jr23-g3j9
- Warn: Project is vulnerable to: GHSA-93q8-gq69-wqmw
- Warn: Project is vulnerable to: GHSA-qwcr-r2fm-qrc7
- Warn: Project is vulnerable to: GHSA-grv7-fg5c-xmjg
- Warn: Project is vulnerable to: GHSA-x9w5-v3q2-3rhw
- Warn: Project is vulnerable to: GHSA-w8qv-6jwh-64r5
- Warn: Project is vulnerable to: GHSA-pxg6-pf52-xh8x
- Warn: Project is vulnerable to: GHSA-3xgq-45jj-v275
- Warn: Project is vulnerable to: GHSA-gxpj-cx7g-858c
- Warn: Project is vulnerable to: GHSA-ff7x-qrg7-qggm
- Warn: Project is vulnerable to: GHSA-434g-2637-qmqr
- Warn: Project is vulnerable to: GHSA-49q7-c7j4-3p7m
- Warn: Project is vulnerable to: GHSA-977x-g7h5-7qgw
- Warn: Project is vulnerable to: GHSA-f7q4-pwc6-w24p
- Warn: Project is vulnerable to: GHSA-fc9h-whq2-v747
- Warn: Project is vulnerable to: GHSA-4gmj-3p3h-gm8h
- Warn: Project is vulnerable to: GHSA-rv95-896h-c2vc
- Warn: Project is vulnerable to: GHSA-qw6h-vgh9-j6wx
- Warn: Project is vulnerable to: GHSA-jchw-25xp-jwwc
- Warn: Project is vulnerable to: GHSA-cxjh-pqwp-8mfp
- Warn: Project is vulnerable to: GHSA-ww39-953v-wcq6
- Warn: Project is vulnerable to: GHSA-pfq8-rq6v-vf5m
- Warn: Project is vulnerable to: GHSA-6x33-pw7p-hmpq
- Warn: Project is vulnerable to: GHSA-c7qv-q95q-8v27
- Warn: Project is vulnerable to: GHSA-78xj-cgh5-2h22
- Warn: Project is vulnerable to: GHSA-2p57-rm9w-gvfp
- Warn: Project is vulnerable to: GHSA-7r28-3m3f-r2pr
- Warn: Project is vulnerable to: GHSA-r8j5-h5cx-65gg
- Warn: Project is vulnerable to: GHSA-896r-f27r-55mw
- Warn: Project is vulnerable to: GHSA-9c47-m6qq-7p4h
- Warn: Project is vulnerable to: GHSA-6c8f-qphg-qjgp
- Warn: Project is vulnerable to: GHSA-76p3-8jx3-jpfq
- Warn: Project is vulnerable to: GHSA-3rfm-jhwj-7488
- Warn: Project is vulnerable to: GHSA-hhq3-ff78-jv3g
- Warn: Project is vulnerable to: GHSA-35jh-r3h4-6jhm
- Warn: Project is vulnerable to: GHSA-952p-6rrq-rcjv
- Warn: Project is vulnerable to: GHSA-f8q6-p94x-37v3
- Warn: Project is vulnerable to: GHSA-vh95-rmgr-6w4m / GHSA-xvch-5gv4-984h
- Warn: Project is vulnerable to: GHSA-92xj-mqp7-vmcj
- Warn: Project is vulnerable to: GHSA-wxgw-qj99-44c2
- Warn: Project is vulnerable to: GHSA-5rrq-pxf6-6jx5
- Warn: Project is vulnerable to: GHSA-8fr3-hfg3-gpgp
- Warn: Project is vulnerable to: GHSA-gf8q-jrpm-jvxq
- Warn: Project is vulnerable to: GHSA-2r2c-g63r-vccr
- Warn: Project is vulnerable to: GHSA-cfm4-qjh2-4765
- Warn: Project is vulnerable to: GHSA-x4jg-mjrx-434g
- Warn: Project is vulnerable to: GHSA-5fw9-fq32-wv5p
- Warn: Project is vulnerable to: GHSA-rp65-9cf3-cjxr
- Warn: Project is vulnerable to: GHSA-cwx2-736x-mf6w
- Warn: Project is vulnerable to: GHSA-v39p-96qg-c8rf
- Warn: Project is vulnerable to: GHSA-8v63-cqqc-6r2c
- Warn: Project is vulnerable to: GHSA-9wv6-86v2-598j
- Warn: Project is vulnerable to: GHSA-566m-qj78-rww5
- Warn: Project is vulnerable to: GHSA-hwj9-h5mp-3pm3
- Warn: Project is vulnerable to: GHSA-7fh5-64p2-3v2j
- Warn: Project is vulnerable to: GHSA-5q6m-3h65-w53x
- Warn: Project is vulnerable to: GHSA-p8p7-x288-28g6
- Warn: Project is vulnerable to: GHSA-c2qf-rxjj-qqgw
- Warn: Project is vulnerable to: GHSA-m6fv-jmcg-4jfg
- Warn: Project is vulnerable to: GHSA-hxcc-f52p-wc94
- Warn: Project is vulnerable to: GHSA-cm22-4g7w-348p
- Warn: Project is vulnerable to: GHSA-g4rg-993r-mgx7
- Warn: Project is vulnerable to: GHSA-c9g6-9335-x697
- Warn: Project is vulnerable to: GHSA-vx3p-948g-6vhq
- Warn: Project is vulnerable to: GHSA-72xf-g2v4-qvf3
- Warn: Project is vulnerable to: GHSA-wr3j-pwj9-hqq6
- Warn: Project is vulnerable to: GHSA-g78m-2chm-r7qv
- Warn: Project is vulnerable to: GHSA-j8xg-fqg3-53r7
- Warn: Project is vulnerable to: GHSA-3h5v-q93c-6h6q
- Warn: Project is vulnerable to: GHSA-6fc8-4gx4-v693
- Warn: Project is vulnerable to: GHSA-c4w7-xm78-47vh
- Warn: Project is vulnerable to: GHSA-p9pc-299p-vxgp
- Warn: Project is vulnerable to: GHSA-4w2v-q235-vp99
- Warn: Project is vulnerable to: GHSA-cph5-m8f7-6c5x
- Warn: Project is vulnerable to: GHSA-wf5p-g6vw-rhxx
- Warn: Project is vulnerable to: GHSA-257v-vj4p-3w2h
- Warn: Project is vulnerable to: GHSA-74fj-2j2h-c42q
- Warn: Project is vulnerable to: GHSA-pw2r-vq6v-hr8c
- Warn: Project is vulnerable to: GHSA-gcx4-mw62-g8wm
- Warn: Project is vulnerable to: GHSA-4wf5-vphf-c2xc
Score
3.7
/10
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 MoreOther packages similar to react-countdown
react-countdown-circle-timer
Lightweight React countdown timer component with color and progress animation based on SVG
react-downcount
React countdown component
@cubetiq/react-use-countdown
React Countdown with trigger
react-countdown-hook
Dead simple yet powerful countdown hook for React.