1.0.0 • Published 8 years ago
sleepyhead v1.0.0
sleepyhead
Good morning sleepy head! This module is an event emitter that emits 'woke' when your computer wakes up from sleep.
npm install --save sleepyhead
Usage
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
1.0.0
8 years ago