1.0.1 • Published 9 years ago
on-wakeup v1.0.1
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')
})
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')
})