windows-cli

3.0.0 • Public • Published

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

Related

Package Sidebar

Install

npm i windows-cli

Weekly Downloads

6

Version

3.0.0

License

MIT

Unpacked Size

3.81 kB

Total Files

4

Last publish

Collaborators

  • sindresorhus