2.3.0 • Published 4 months ago

@fitx/inactive-timer v2.3.0

Weekly downloads
-
License
ISC
Repository
github
Last release
4 months ago

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();
2.3.0

4 months ago

2.2.0

10 months ago

2.1.0

10 months ago

2.0.0

10 months ago

1.2.0

2 years ago

1.0.0

2 years ago