Detection for computer waking up from sleep.
It simply exports a single function that you can pass a callback to.
When your computer wakes from sleep your callback will be called.
If you're not using a module system or using AMD use the
wake-event.bundle.js file instead.
var wakeEvent = ;;
If you're not using a module system at all, use Alex's jQuery plugin or just include the bundle file by itself.
npm install wake-event
Props for the core idea to Alex. Written by @HenrikJoreteg.