{"id":15080657,"url":"https://github.com/gradeup/all-windows","last_synced_at":"2025-10-05T12:32:14.785Z","repository":{"id":57176333,"uuid":"253497209","full_name":"gradeup/all-windows","owner":"gradeup","description":"Get metadata about the all windows (title, id, bounds, owner, etc) MacOs","archived":true,"fork":true,"pushed_at":"2020-04-24T05:14:57.000Z","size":3013,"stargazers_count":4,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-03T23:07:59.313Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Swift","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"sindresorhus/get-windows","license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/gradeup.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":".github/funding.yml","license":"license","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null},"funding":{"github":"sindresorhus"}},"created_at":"2020-04-06T12:54:05.000Z","updated_at":"2023-08-02T21:40:07.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/gradeup/all-windows","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gradeup%2Fall-windows","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gradeup%2Fall-windows/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gradeup%2Fall-windows/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gradeup%2Fall-windows/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gradeup","download_url":"https://codeload.github.com/gradeup/all-windows/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":235399012,"owners_count":18983814,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-09-25T05:04:56.164Z","updated_at":"2025-10-05T12:32:09.478Z","avatar_url":"https://github.com/gradeup.png","language":"Swift","funding_links":["https://github.com/sponsors/sindresorhus"],"categories":[],"sub_categories":[],"readme":"# all-windows\n\nGet metadata about all windows (title, id, bounds, owner, URL, etc)\n\nWorks on macOS.\n\nUsers on macOS 10.13 or earlier needs to download the [Swift runtime support libraries](https://support.apple.com/kb/DL1998).\n\n## Install\n\n```\n$ npm install all-windows\n```\n\n## Usage\n\n```js\nconst allWindows = require('all-windows');\n\n(async () =\u003e {\n\tconsole.log(await allWindows());\n\t/*\n\t[\n\t\t{\n\t\t\ttitle: 'Unicorns - Google Search',\n\t\t\tid: 5762,\n\t\t\tbounds: {\n\t\t\t\tx: 0,\n\t\t\t\ty: 0,\n\t\t\t\theight: 900,\n\t\t\t\twidth: 1440\n\t\t\t},\n\t\t\towner: {\n\t\t\t\tname: 'Google Chrome',\n\t\t\t\tprocessId: 310,\n\t\t\t\tbundleId: 'com.google.Chrome',\n\t\t\t\tpath: '/Applications/Google Chrome.app'\n\t\t\t},\n\t\t\turl: 'https://www.google.com/search?q=unicorn',\n\t\t\tmemoryUsage: 11015432\n\t\t}\n\t]\n\t*/\n})();\n```\n\n\n## API\n\n### allWindows()\n\nReturns a `Promise\u003cObject\u003e` with the result, or `Promise\u003cundefined\u003e` if there are no windows or if the information is not available.\n\n### allWindows.sync()\n\nReturns an `Object` with the result, or `undefined` if there are no windows.\n\n## Result\nAn array of the following object structure:\n- `platform` *(string)* - `'macos'`\n- `title` *(string)* - Window title\n- `id` *(number)* - Window identifier\n- `bounds` *(Object)* - Window position and size\n\t- `x` *(number)*\n\t- `y` *(number)*\n\t- `width` *(number)*\n\t- `height` *(number)*\n- `owner` *(Object)* - App that owns the window\n\t- `name` *(string)* - Name of the app\n\t- `processId` *(number)* - Process identifier\n\t- `bundleId` *(string)* - Bundle identifier *(macOS only)*\n\t- `path` *(string)* - Path to the app\n- `url` *(string?)* - URL of the active browser tab if the window is Safari, Chrome, Edge, or Brave *(macOS only)*\n- `memoryUsage` *(number)* - Memory usage by the window owner process\n\n## OS support\n\nIt works on macOS.\n\n___\n\n### Thanks [sindresorhus](https://github.com/sindresorhus/active-win) for the base implementation","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgradeup%2Fall-windows","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgradeup%2Fall-windows","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgradeup%2Fall-windows/lists"}