@fitx/inactive-timer
TypeScript icon, indicating that this package has built-in type declarations

2.3.0 • Public • Published

inactive-timer

Inactive Timer function with web worker Support. Starts a Timer and Reset them on User Interaction.

Installation

npm i @fitx/inactive-timer

Usage

import useInactiveTimer from '@fitx/inactive-timer';

const {
  onTimerDone, // Event if Timer Ends
  onTimeUpdate, // Event if time value is updated
  time, // current countdown time in seconds
  start, // function to start timer
  stop, // function to stop timer
  isRunning, // state if timer is running
  countdown, // inital countdown time in seconds
} = useInactiveTimer();

Readme

Keywords

Package Sidebar

Install

npm i @fitx/inactive-timer

Weekly Downloads

0

Version

2.3.0

License

ISC

Unpacked Size

15.1 kB

Total Files

9

Last publish

Collaborators

  • gymx
  • webdesignberlin
  • atomstrom