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