Socket
Book a DemoInstallSign in
Socket

on-wake-up

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

on-wake-up

Small module that calls a function when your computer wakes up from sleep

latest
Source
npmnpm
Version
1.0.2
Version published
Maintainers
1
Created
Source

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

FAQs

Package last updated on 15 Jun 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts