Socket
Socket
Sign inDemoInstall

active-win-cli

Package Overview
Dependencies
75
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    active-win-cli

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


Version published
Weekly downloads
31
decreased by-60.26%
Maintainers
1
Install size
680 kB
Created
Weekly downloads
 

Readme

Source

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
  • active-win - API for this module

License

MIT © Sindre Sorhus

Keywords

FAQs

Last updated on 30 Apr 2024

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc