Small module that calls a function when your computer wakes up from sleep
MIT License
Small module that calls a function when your computer wakes up from sleep. Useful for resetting retry timeouts and stuff.
npm install on-wake-up
var awake = require('on-wake-up')
awake(function () {
console.log('computer (probably) woke from sleep')
})
@juliangruber came up with the algorithm
@pfraze for writing almost the same module 6 months before me
MIT