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

Listen to active windows by specifying them

  • 1.1.3
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
13
increased by62.5%
Maintainers
1
Weekly downloads
 
Created
Source

Active Window Listener

Listen to active windows by specifying them

This will be used in https://nertivia.tk (My chat web app project) in the future to show playing status and more!

Usage

const { ProcessListen } = require("active-window-listener");

const listener = new ProcessListen(["Discord.exe", "Telegram.exe", "Code.exe"]);

listener.changed(data => {
    console.log("Active: ", data)
})

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.

const { getWindows } = require("active-window-listener");

console.log(getWindows())

This should output an array of Window Class properties. See the package used below to view the methods.

Package used

Mainly used to get all the active window information. https://github.com/sentialx/node-window-manager/ Used to get File Description (Which is used to get the proper program name) https://www.npmjs.com/package/exiftool-vendored

Keywords

FAQs

Package last updated on 05 Mar 2021

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

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