npm.io
1.0.1 • Published 11 years ago

on-wakeup

Licence
MIT
Version
1.0.1
Deps
0
Vulns
0
Weekly
0
Stars
26

On Wakeup

Watches for the computer to fall asleep and then triggers an event callback on wakeup

var onWakeup = require('on-wakeup')
onWakeup(function () {
  console.log('Device sleep detected')
})

Keywords