Good morning sleepy head! This module is an event emitter that emits 'woke' when your computer wakes up from sleep.
npm install --save sleepyhead
const Sleepyhead = require('sleepyhead')
const sleepyhead = new Sleepyhead({ tick: 10*1e3, timeout: 100*1e3 })
sleepyhead.on('woke', () => {
console.log('good morning!')
})
based on
MIT