UNPKG

on-wakeup

Version:

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

10 lines (8 loc) 210 B
# On Wakeup Watches for the computer to fall asleep and then triggers an event callback on wakeup ```js var onWakeup = require('on-wakeup') onWakeup(function () { console.log('Device sleep detected') }) ```