on-wake-up
DefinitelyTyped icon, indicating that this package has TypeScript declarations provided by the separate @types/on-wake-up package

1.0.2 • Public • Published

on-wake-up

Small module that calls a function when your computer wakes up from sleep. Useful for resetting retry timeouts and stuff.

npm install on-wake-up

Usage

var awake = require('on-wake-up')

awake(function () {
  console.log('computer (probably) woke from sleep')
})

Credits

@juliangruber came up with the algorithm

@pfraze for writing almost the same module 6 months before me

License

MIT

Readme

Keywords

none

Package Sidebar

Install

npm i on-wake-up

Weekly Downloads

65

Version

1.0.2

License

MIT

Last publish

Collaborators

  • mafintosh