{"id":13450384,"url":"https://github.com/alexkhismatulin/react-use-count-down","last_synced_at":"2026-02-18T05:16:40.235Z","repository":{"id":40643492,"uuid":"189592219","full_name":"alexkhismatulin/react-use-count-down","owner":"alexkhismatulin","description":"Dead simple yet powerful countdown hook for React.","archived":false,"fork":false,"pushed_at":"2024-03-01T02:06:43.000Z","size":1858,"stargazers_count":75,"open_issues_count":14,"forks_count":21,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-09-19T15:36:53.701Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://stackblitz.com/edit/react-use-count-down","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/alexkhismatulin.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-05-31T12:43:32.000Z","updated_at":"2025-05-31T10:57:17.000Z","dependencies_parsed_at":"2024-01-07T18:06:03.456Z","dependency_job_id":"3299f4a1-9a51-4f43-a452-99b8705e4833","html_url":"https://github.com/alexkhismatulin/react-use-count-down","commit_stats":{"total_commits":70,"total_committers":6,"mean_commits":"11.666666666666666","dds":0.5857142857142856,"last_synced_commit":"5ff649a69f1c2a9d1ff486768eb9b8e9b9a78425"},"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"purl":"pkg:github/alexkhismatulin/react-use-count-down","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alexkhismatulin%2Freact-use-count-down","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alexkhismatulin%2Freact-use-count-down/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alexkhismatulin%2Freact-use-count-down/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alexkhismatulin%2Freact-use-count-down/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/alexkhismatulin","download_url":"https://codeload.github.com/alexkhismatulin/react-use-count-down/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alexkhismatulin%2Freact-use-count-down/sbom","scorecard":{"id":181913,"data":{"date":"2025-08-11","repo":{"name":"github.com/alexkhismatulin/react-use-count-down","commit":"5ff649a69f1c2a9d1ff486768eb9b8e9b9a78425"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.4,"checks":[{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Code-Review","score":5,"reason":"Found 1/2 approved changesets -- score normalized to 5","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"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"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 29 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Vulnerabilities","score":0,"reason":"58 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-968p-4wvh-cqc8","Warn: Project is vulnerable to: GHSA-67hx-6x53-jw92","Warn: Project is vulnerable to: GHSA-p8p7-x288-28g6","Warn: Project is vulnerable to: GHSA-93q8-gq69-wqmw","Warn: Project is vulnerable to: GHSA-wf5p-g6vw-rhxx","Warn: Project is vulnerable to: GHSA-jr5f-v2jv-69x6","Warn: Project is vulnerable to: GHSA-v6h2-p8h4-qcjw","Warn: Project is vulnerable to: GHSA-grv7-fg5c-xmjg","Warn: Project is vulnerable to: GHSA-x9w5-v3q2-3rhw","Warn: Project is vulnerable to: GHSA-257v-vj4p-3w2h","Warn: Project is vulnerable to: GHSA-3xgq-45jj-v275","Warn: Project is vulnerable to: GHSA-gxpj-cx7g-858c","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-vjh7-7g9h-fjfh","Warn: Project is vulnerable to: GHSA-jchw-25xp-jwwc","Warn: Project is vulnerable to: GHSA-cxjh-pqwp-8mfp","Warn: Project is vulnerable to: GHSA-fjxv-7rqg-78g4","Warn: Project is vulnerable to: GHSA-8r6j-v8pm-fqw3","Warn: Project is vulnerable to: MAL-2023-462","Warn: Project is vulnerable to: GHSA-ww39-953v-wcq6","Warn: Project is vulnerable to: GHSA-qqgx-2p2h-9c37","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","Warn: Project is vulnerable to: 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-rp65-9cf3-cjxr","Warn: Project is vulnerable to: GHSA-h7cp-r72f-jxh6","Warn: Project is vulnerable to: GHSA-v62p-rq8g-8h59","Warn: Project is vulnerable to: GHSA-566m-qj78-rww5","Warn: Project is vulnerable to: GHSA-7fh5-64p2-3v2j","Warn: Project is vulnerable to: GHSA-hwj9-h5mp-3pm3","Warn: Project is vulnerable to: GHSA-gcx4-mw62-g8wm","Warn: Project is vulnerable to: GHSA-c2qf-rxjj-qqgw","Warn: Project is vulnerable to: GHSA-m6fv-jmcg-4jfg","Warn: Project is vulnerable to: GHSA-cm22-4g7w-348p","Warn: Project is vulnerable to: GHSA-3jfq-g458-7qm9","Warn: Project is vulnerable to: GHSA-r628-mhmh-qjhw","Warn: Project is vulnerable to: GHSA-9r2w-394v-53qc","Warn: Project is vulnerable to: GHSA-5955-9wpr-37jh","Warn: Project is vulnerable to: GHSA-qq89-hq3f-393p","Warn: Project is vulnerable to: GHSA-f5x3-32g6-xq36","Warn: Project is vulnerable to: GHSA-4wf5-vphf-c2xc","Warn: Project is vulnerable to: GHSA-52f5-9888-hmc6","Warn: Project is vulnerable to: GHSA-72xf-g2v4-qvf3","Warn: Project is vulnerable to: GHSA-j8xg-fqg3-53r7","Warn: Project is vulnerable to: GHSA-3h5v-q93c-6h6q"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-16T18:59:57.092Z","repository_id":40643492,"created_at":"2025-08-16T18:59:57.092Z","updated_at":"2025-08-16T18:59:57.092Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29569856,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-18T04:18:28.490Z","status":"ssl_error","status_checked_at":"2026-02-18T04:13:49.018Z","response_time":162,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-07-31T07:00:34.129Z","updated_at":"2026-02-18T05:16:35.227Z","avatar_url":"https://github.com/alexkhismatulin.png","language":"JavaScript","funding_links":[],"categories":["Packages"],"sub_categories":[],"readme":"![react-countdown-hook](./assets/cover.png)\n\u003cp align=\"center\"\u003eDead simple yet powerful countdown hook for React. Powered by \u003ccode\u003erequestAnimationFrame\u003c/code\u003e.\u003c/p\u003e\n\u003cp align=\"center\"\u003e\n    \u003ca href=\"https://circleci.com/gh/alexkhismatulin/react-use-count-down\"\u003e\n        \u003cimg src=\"https://circleci.com/gh/alexkhismatulin/react-use-count-down.svg?style=svg\" /\u003e\n    \u003c/a\u003e\n    \u003ca href=\"https://coveralls.io/github/alexkhismatulin/react-use-count-down?branch=master\"\u003e\n        \u003cimg src=\"https://coveralls.io/repos/github/alexkhismatulin/react-use-count-down/badge.svg?branch=master\" /\u003e\n    \u003c/a\u003e\n    \u003ca href=\"https://www.npmjs.com/package/react-countdown-hook\"\u003e\n        \u003cimg src=\"https://img.shields.io/npm/v/react-countdown-hook.svg\" /\u003e\n    \u003c/a\u003e\n\u003c/p\u003e\n\n## Installation\nUsing npm:\n\n```sh\n$ npm install --save react-countdown-hook\n```\n\nUsing yarn:\n\n```sh\n$ yarn add react-countdown-hook\n```\n\n## Quick Start\n```javascript\nimport React from 'react';\nimport useCountDown from 'react-countdown-hook';\n\nconst initialTime = 60 * 1000; // initial time in milliseconds, defaults to 60000\nconst interval = 1000; // interval to change remaining time amount, defaults to 1000\n\nconst render = () =\u003e {\n  const [timeLeft, { start, pause, resume, reset }] = useCountDown(initialTime, interval);\n  \n  // start the timer during the first render\n  React.useEffect(() =\u003e {\n    start();\n  }, []);\n  \n  const restart = React.useCallback(() =\u003e {\n    // you can start existing timer with an arbitrary value\n    // if new value is not passed timer will start with initial value\n    const newTime = 42 * 1000;\n    start(newTime);\n  }, []);\n \n  return (\n    \u003c\u003e\n      \u003cp\u003eTime left: {timeLeft}\u003c/p\u003e\n \n      \u003cbutton onClick={restart}\u003e\n        Restart counter with 42 seconds\n      \u003c/button\u003e\n    \u003c/\u003e\n  );\n}\n```\n\nNote that this is a very basic usage. Check out more usage examples\n[in playground](https://stackblitz.com/edit/react-use-count-down?file=index.js \"react-countdown-hook on stackblitz\")\nor [in the demo project](./demo/index.js \"react-countdown-hook demo project\")\n\n## Documentation\n### [timeLeft, actions] = useCountDown(timeToCount, interval)\n\n#### Parameters\nTakes a default countdown time and interval time.\n* `timeToCount` {`Number`} Time in milliseconds that countdown should start with. **Defaults to `60000`**\n* `interval` {`Number`} Time in milliseconds representing the frequency that countdown should update with. **Defaults to `1000`**\n\n#### Return value\nReturns an array with remaining time and actions object.\n* `timeLeft` {`Number`} Remaining countdown time in milliseconds\n* `actions.start` {`Function`} Start or restart a countdown. Takes time in milliseconds to start with.\n* `actions.reset` {`Function`} Resets a countdown to initial state\n* `actions.pause` {`Function`} Pauses a countdown\n* `actions.resume` {`Function`} Resumes a paused countdown\n\n## Contributing\nFeel free to submit any issues or pull requests.\n\n## License\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falexkhismatulin%2Freact-use-count-down","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falexkhismatulin%2Freact-use-count-down","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falexkhismatulin%2Freact-use-count-down/lists"}