New: Introducing PHP and Composer Support.Read the Announcement
Socket
Book a DemoInstallSign in
Socket

idlerun

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

idlerun

Detect User Idle Status based on Mouse & Keyboard Input

latest
Source
npmnpm
Version
0.0.1
Version published
Maintainers
1
Created
Source

idlerun

Node.js Native Addon to report system Idle time based on Keyboard & Mouse Input.

Usage

Make sure node-gyp is installed globally: npm install node-gyp -g

Checkout this Repo and run npm install

Run node-gyp rebuild after making changes to C++ code.

Currently emitting events on the main node process.

var idlerun = require('idlerun');
var timeout = 15 * 60 * 1000;

process.on('idle', function(a) {
	console.error('User Idle');
});

process.on('active', function(a) {
	console.error('User Active');
});

idlerun(timeout, function(a) {
	console.error('User Idle for: %d', a);
});

See example in test/test.js. Run with node test/test

FAQs

Package last updated on 07 Nov 2015

Did you know?

Socket

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.

Install

Related posts