Narnia's Poofy Meatcleaver

    on-wakeup

    1.0.1 • Public • Published

    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')
    })

    Install

    npm i on-wakeup

    DownloadsWeekly Downloads

    308

    Version

    1.0.1

    License

    MIT

    Last publish

    Collaborators

    • pfraze