onwakeup
v0.0.2
Published
detect when computer awakes from sleep
Downloads
7
Maintainers
Readme
onwakeup
trigger callback when computer wakes up from sleep/hibernation
Easy to use
Module usage
const onwakeup = require( './onwakeup.js' )
onwakeup( function ( delta ) {
console.log( 'Wakeup! Computer was asleep for ' + delta + ' milliseconds' )
} )
About
Why
For who?
How
Alternatives
Test
no tests.. debug with debug.js