JSPM

windows-cli

3.0.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 3
  • Score
    100M100P100Q32590F
  • License MIT

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

Package Exports

    This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (windows-cli) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

    Readme

    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