# on-wakeup

> Watches for the computer to fall asleep and then triggers an event callback on wakeup

Latest version **1.0.1** (published 2015-11-11) · MIT license · 0 weekly downloads

## Install

```sh
npm install on-wakeup
pnpm add on-wakeup
yarn add on-wakeup
bun add on-wakeup
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.1 |
| Published | 2015-11-11 |
| First published | 2015-09-30 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 26 |
| Author | Paul Frazee |
| Maintainers | pfraze |
| Keywords | sleep, wakeup, event |

## Links

- npm: https://www.npmjs.com/package/on-wakeup
- Repository: https://github.com/pfraze/on-wakeup
- Homepage: https://github.com/pfraze/on-wakeup#readme
- Issues: https://github.com/pfraze/on-wakeup/issues
- npm.io page: https://npm.io/package/on-wakeup

## Alternatives

- [async-exit-hook](https://npm.io/package/async-exit-hook.md) — 3.7M weekly downloads
- [evnty](https://npm.io/package/evnty.md) — 7.2K weekly downloads
- [eleventy-plugin-asciidoc](https://npm.io/package/eleventy-plugin-asciidoc.md) — 3.5K weekly downloads
- [@jswork/next-get2get](https://npm.io/package/@jswork/next-get2get.md) — 945 weekly downloads
- [@dashersw/axon](https://npm.io/package/@dashersw/axon.md) — 934 weekly downloads

## Recent versions

- 1.0.1 (latest) — 2015-11-11
- 1.0.0 — 2015-09-30

## README

# On Wakeup

Watches for the computer to fall asleep and then triggers an event callback on wakeup

```js
var onWakeup = require('on-wakeup')
onWakeup(function () {
  console.log('Device sleep detected')
})
```

---
_Source: https://npm.io/package/on-wakeup · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
