New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

active-window-listener

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

active-window-listener - npm Package Compare versions

Comparing version 1.0.2 to 1.0.3

9

main.js

@@ -19,8 +19,5 @@

changed(cb) {
this.eventEmitter.on("changed", data => {
if (!data) return cb(undefined);
cb({
title: data.getTitle(),
pid: data.processId,
})
this.eventEmitter.on("changed", window => {
if (!window) return cb(undefined);
cb(window)
})

@@ -27,0 +24,0 @@ }

{
"name": "active-window-listener",
"version": "1.0.2",
"version": "1.0.3",
"description": "Listen to active windows by specifying them",

@@ -5,0 +5,0 @@ "main": "main.js",

@@ -16,9 +16,4 @@ # Active Window Listener

```
This should output an object:
```json
{
"title": "#Epic - Discord",
"pid": 1234,
}
```
This should output an object of Window Class properties. See the package used below to view the methods.
There is also a function to get windows that are opened. I needed to filter out some of the components from the "Windows" Directory in order to get the proper list.

@@ -25,0 +20,0 @@ ```js

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc