
Security News
Deno 2.6 + Socket: Supply Chain Defense In Your CLI
Deno 2.6 introduces deno audit with a new --socket flag that plugs directly into Socket to bring supply chain security checks into the Deno CLI.
interactioncheck
Advanced tools
Use this script to check if your users have not interacted with your page after a given amount of time
Use this script to check if your users have not interacted with your page after a given amount of time. You can choose what to listen for (mousemove or scroll are good examples) and then run a callback function afterwards.
bower install interactioncheck
npm install interactioncheck --save
Include interactioncheck.js in your JavaScript bundle or add it to your HTML page like this:
<script type='application/javascript' src='/path/to/interactioncheck.js'></script>
or with NPM/Browserify
var InteractionCheck = require('interactioncheck');
// Listen for mousemove event
var mousemoveCheck = new InteractionCheck('mousemove', 4000, function() {
console.log('no mousemove');
});
// Listen for scroll event
var scrollCheck = new InteractionCheck('scroll', 4000, function() {
console.log('no scroll');
});
// Prevent from starting immediately and restarting
var touchstartCheck = new InteractionCheck('touchstart', 4000, function() {
console.log('no touchstart');
}, false, false);
InteractionCheck(event, interval, callback, startImmediately, restart)
event [string]Default: mousemove
Can be any javascript event, e.g. mousemove or scroll.
interval [integer]Default: 6000
Time in milliseconds (thousandths of a second) to wait before triggering the check.
callback [function]Default: undefined
A callback function to be run if the user is inactive for your specified amount of time.
startImmediately [boolean] [optional]Default: true
Set this to true to start the timer immediately after invocation.
restart [boolean] [optional]Default: true
Set this to true to restart the check after the callback has fired.
InteractionCheck.start()Call start() to start the check if startImmediately has been set to false.
InteractionCheck.stop()Call stop() to stop the check's timer at any time.
start() / stop() examplesvar touchstartCheck = new InteractionCheck('touchstart', 4000, function() {
console.log('no touchstart');
}, false, false);
// Start the prompt
touchstartCheck.start();
// Stop the prompt
touchstartCheck.stop();
Chrome, Internet Explorer 9+, Firefox, Opera
Browserify (Node.js) & AMD
FAQs
Use this script to check if your users have not interacted with your page after a given amount of time
We found that interactioncheck 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
Deno 2.6 introduces deno audit with a new --socket flag that plugs directly into Socket to bring supply chain security checks into the Deno CLI.

Security News
New DoS and source code exposure bugs in React Server Components and Next.js: what’s affected and how to update safely.

Security News
Socket CEO Feross Aboukhadijeh joins Software Engineering Daily to discuss modern software supply chain attacks and rising AI-driven security risks.