Skip to content

speak/node-afk

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

66 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

node-afk

Provides seconds since the user was last active

Install

npm install afk

Example

var afk = require('afk');

var seconds = 10;

var listenerId = afk.addListener(seconds, function(e) {
	console.log(e)
	afk.removeListener(e.id);
})

Notes

Linux support requires xprintidle otherwise returns 0

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 75.1%
  • Go 24.9%