app-nap

Enable or disable app nap for your app, from Node

Usage no npm install needed!

<script type="module">
  import appNap from 'https://cdn.skypack.dev/app-nap';
</script>

README

Disable App Nap on macOS

This Node module disables app nap for the currently running process by starting an activity.

Usage

const appNap = require('app-nap')
const reason = 'Keeping app live'

appNap.disable(reason)

License

MIT, please see LICENSE for details.