This package has been deprecated

Author message:

Renamed to windows-cli: https://www.npmjs.com/package/windows-cli

active-win-cli

3.0.0 • Public • Published

active-win-cli Build Status

Get the title/id/etc of the active window (macOS & Linux)

Install

$ npm install --global active-win-cli

Usage

$ active-win --help

  Usage
    $ active-win [property]

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

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

Tip

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

$ screencapture -l$(active-win id) screenshot.png

Related

License

MIT © Sindre Sorhus

/active-win-cli/

    Package Sidebar

    Install

    npm i active-win-cli

    Weekly Downloads

    2

    Version

    3.0.0

    License

    MIT

    Unpacked Size

    3.6 kB

    Total Files

    4

    Last publish

    Collaborators

    • sindresorhus