{"repo":"sindresorhus/get-windows","free":true,"listed":false,"github":"https://github.com/sindresorhus/get-windows","clone":"git clone https://github.com/sindresorhus/get-windows.git","description":"Get metadata about the active window and open windows (title, id, bounds, owner, etc)","language":"JavaScript","stars":916,"topics":["nodejs","javascript","active-window","node-module","npm-package"],"license":"MIT","category":"dev-tools","readme_excerpt":"get-windows Get metadata about the active window and open windows (title, id, bounds, owner, URL, etc) Works on macOS 10.14+, Linux (note), and Windows 7+. Install This is an ESM package which requires you to use ESM Usage API activeWindow(options?) Get metadata about the active window. options Type: object accessibilityPermission (macOS only) Type: boolean \\ Default: true Enable the accessibility permission check. Setting this to false will prevent the accessibility permission prompt on macOS versions 10.15 and newer. The url property won't be retrieved. screenRecordingPermission (macOS only) Type: boolean \\ Default: true Enable the screen recording permission check. Setting this to false will prevent the screen recording permission prompt on macOS versions 10.15 and newer. The title property in the result will always be set to an empty string. activeWindowSync(options?) Get metadata about the active window synchronously. Result Returns a Promise with the result, or Promise if there is no active window or if the information is not available. - platform (string) - 'macos' 'linux' 'windows' - title (string) - Window title - id (number) - Window identifier - bounds (Object) - Window position and size - x (number) - y (number) - width (number) - height (number) - contentBounds (Object) - Window content position and size, which excludes the title bar, menu bar, and frame (Windows only) - x (number) - y (number) - width (number) - height (number) - owner (Object) - App that owns t","default_branch":null,"files":null,"tree":[],"storefront":"/r/sindresorhus","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/sindresorhus/get-windows/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}