User "active" / "idle" event emitter.
var status = requrie('status');
status.watch();
status('idle', function(){
console.log('idle!');
});
status('active', function(){
console.log('active!');
});
$ component install yields/status
Start watching on mousemove
and keyup
the default timeout
is 1 minute.
Stop watching mousemove
and keyup
.
Invoke fn
on event
.
- add tests.
MIT