
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
@react-corekit/use-idle
Advanced tools
Detecting when the user becomes inactive (idle) or active.
npm install --save @react-corekit/use-idle
yarn add @react-corekit/use-idle
import React from "react";
import { useIdle } from "@react-corekit/use-idle";
const Example = () => {
const options = { timeToIdle: 1000 };
const isIdle = useIdle(options);
return <div>{isIdle ? "Are you still there?" : "Yes, you are here"}</div>;
};
mousemove event is ignored by default, to include it add the following line to the options object:
const options = { ignoredEventsWhenIdle: [] };
Activity detector allows you to configure some parameters:
timeToIdle: number of milliseconds of inactivity which makes activity detector transition to 'idle' (30000 by default)activityEvents: the user events which make activity detector transition from 'idle' to 'active'. The default list of activityEvents is ['click', 'mousemove', 'keydown', 'DOMMouseScroll', 'mousewheel', 'mousedown', 'touchstart', 'touchmove', 'focus']inactivityEvents: the list of events which make the activity detector transition from 'active' to 'idle' without waiting for timeToIdle timeout. By default: ['blur']ignoredEventsWhenIdle: list of events to ignore in idle state. By default: ['mousemove']initialState: can be "idle" or "active" ("active" by default)Visit: https://react-corekit.github.io/use-idle/ for a minimalistic live demo (Including mousemove event).
MIT © glongh
FAQs
Detecting when the user becomes inactive (idle) or active
We found that @react-corekit/use-idle demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.