@arcsine/active-win (npm): Get metadata about the active window (title, id, bounds, screens, owner, etc). Works on macOS, X11-based Desktops (Linux, BSD), Windows.
Keywords: macos|linux|x11|windows|app|application|window|win|active|focused|current|title|name|id|pid|screenshot|capture|metadata|bounds|memory|usage|bundleid