electron-macos-space-listener
v1.0.10
Published
## Description
Readme
Electron Macos Space Change Listener
Description
This package provides a way to listen for when your user changes their space on macOS.
Table of Contents
Installation
Install using npm
npm install electron-macos-space-change-listenerYou may need to run rebuild to get the native module to work
npm run rebuildRequire the package in your electron app
const {
startSpaceChangeListener,
} = require("electron-macos-space-change-listener");Start listening for space changes after app.ready
app.on("ready", () => {
startSpaceChangeListener(() => {
console.log("Space changed");
});
});Todo
- [ ] Verify it works on production builds
- [ ] Import support
- [ ] Unit tests?
- [ ] Better README
