{"library":"react-timer-hook","type":"library","category":null,"description":"react-timer-hook is a robust custom React hook library designed to simplify the implementation of timers, stopwatches, and general time-based logic within React components. It provides three core hooks: `useTimer` for countdowns, `useStopwatch` for count-up timers, and `useTime` for retrieving the current time. Currently stable at version `4.0.5`, the library maintains an active release cadence, frequently addressing bug fixes, dependency updates, and minor feature enhancements. A key differentiator is its out-of-the-box TypeScript support and its intelligent handling of browser tab inactivity to ensure accurate timer behavior, especially for stopwatches. It exposes a comprehensive set of time values including days, hours, minutes, seconds, milliseconds, and total raw seconds/milliseconds, along with functions for starting, pausing, resuming, and restarting timers, offering fine-grained control for various time-sensitive UI/UX requirements.","language":"javascript","status":"active","version":"4.0.5","tags":["javascript","react","react-hook","react-hooks","timer","countdown","time","clock","useTimer","typescript"],"install":[{"cmd":"npm install react-timer-hook","imports":["import { useTimer } from 'react-timer-hook';","import { useStopwatch } from 'react-timer-hook';","import { useTime } from 'react-timer-hook';","import type { TimerControls } from 'react-timer-hook';"]},{"cmd":"yarn add react-timer-hook","imports":[]},{"cmd":"pnpm add react-timer-hook","imports":[]}],"homepage":null,"github":"https://github.com/amrlabib/react-timer-hook","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/react-timer-hook","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"18–22","success_rate":0,"avg_install_s":null,"avg_import_s":null,"wheel_type":null},"url":"https://checklist.day/v1/registry/react-timer-hook/compatibility"},"provenance":{"verified_status":null,"verified_at":null,"last_verified":"Wed Jun 17","next_check":"Sat Jul 18","install_tag":null}}