Socket
Book a DemoInstallSign in
Socket

windows-cli

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

windows-cli

Get metadata about the active window (title, id, bounds, owner, URL, etc)

latest
Source
npmnpm
Version
3.0.0
Version published
Maintainers
1
Created
Source

windows-cli

Get metadata about the active window (title, id, bounds, owner, URL, etc)

Works on macOS 10.14+, Linux, and Windows 7+.

Install

npm install --global windows-cli

Usage

$ active-window --help

  Usage
    $ active-window [property]

    Returns title, id, app, pid, or the specified property

  Examples
    $ active-window
    npm install
    54
    Terminal
    368
    $ active-window app
    Terminal

Tip

You can use the id property with the builtin screencapture CLI tool to screenshot the active window:

screencapture -l$(active-window id) screenshot.png
  • get-windows - API for this package

Keywords

cli-app

FAQs

Package last updated on 30 Apr 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