🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
DemoInstallSign in
Socket

react-idle-timer

Package Overview
Dependencies
Maintainers
1
Versions
142
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-idle-timer - npm Package Compare versions

Comparing version

to
1.0.2

2

package.json
{
"name": "react-idle-timer",
"version": "1.0.1",
"version": "1.0.2",
"description": "Activity detection for React.js",

@@ -5,0 +5,0 @@ "main": "build/index.js",

# React Idle Timer
> React.js port of jQuery.idleTimer with some extras.
[![NPM](https://nodei.co/npm/react-idle-timer.png?downloads=true&stars=true)](https://nodei.co/npm/react-idle-timer/)
[![NPM](https://nodei.co/npm/react-idle-timer.png?downloads=true&stars=true)](https://npmjs.org/package/react-idle-timer/)

@@ -49,3 +49,3 @@ # Installation

- **element** {*Object*} - Defaults to document, may pass a ref to another element
- **format** {*String*} - moment.js format string applied to last active time
- **format** {*String*} - moment.js format string applied to `lastActiveTime`

@@ -60,4 +60,4 @@ ## Methods

- **lastActiveTime()** {*String*} - Returns the last active time as a number or a formatted string if the `format` prop is defined
- **isIdle()** {*Boolean*} - Returns weather or not user is idle
- **isIdle()** {*Boolean*} - Returns whether or not user is idle