Idle user checking for frontend applications
Start monitoring the user
const idle = require('lutzjs')
$idle.watch()
// or
$idle.watch(5000)
Subscribe with a function
$idle.on(() => alert('HEY!!!'))
Ignore (when watching a video for example)
$idle.ignore()
MIT © TBalint19