You're Invited:Meet the Socket Team at RSAC and BSidesSF 2026, March 23–26.RSVP
Socket
Book a DemoSign in
Socket

electron-macos-space-listener

Package Overview
Dependencies
Maintainers
0
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

electron-macos-space-listener

## Description

latest
Source
npmnpm
Version
1.0.10
Version published
Maintainers
0
Created
Source

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
  • Todo

Installation

Install using npm

npm install electron-macos-space-change-listener

You may need to run rebuild to get the native module to work

npm run rebuild

Require 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

FAQs

Package last updated on 12 Aug 2024

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