{"id":15690590,"url":"https://github.com/linusu/node-capture-window","last_synced_at":"2025-05-07T23:48:50.157Z","repository":{"id":26023029,"uuid":"29465883","full_name":"LinusU/node-capture-window","owner":"LinusU","description":"Capture a desktop window to a png file. Simple and easy.","archived":false,"fork":false,"pushed_at":"2022-11-07T10:34:53.000Z","size":16,"stargazers_count":8,"open_issues_count":1,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-15T06:04:56.537Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Objective-C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/LinusU.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-01-19T10:35:30.000Z","updated_at":"2023-04-19T08:28:07.000Z","dependencies_parsed_at":"2023-01-14T03:53:12.873Z","dependency_job_id":null,"html_url":"https://github.com/LinusU/node-capture-window","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LinusU%2Fnode-capture-window","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LinusU%2Fnode-capture-window/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LinusU%2Fnode-capture-window/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LinusU%2Fnode-capture-window/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/LinusU","download_url":"https://codeload.github.com/LinusU/node-capture-window/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252973625,"owners_count":21834105,"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-10-03T18:12:27.919Z","updated_at":"2025-05-07T23:48:50.136Z","avatar_url":"https://github.com/LinusU.png","language":"Objective-C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# `capture-window`\n\nCapture a desktop window to a png file. Simple and easy.\n\n## Installation\n\n```sh\nnpm install --save capture-window\n```\n\n## Usage\n\n```javascript\nconst captureWindow = require('capture-window')\n\ncaptureWindow('Finder', 'Downloads').then((filePath) =\u003e {\n  // filePath is the path to a png file\n})\n```\n\n## API\n\n### `captureWindow(bundle, title[, filePath])`\n\n- `bundle` (`string`, required)\n- `title` (`string`, required)\n- `filePath` (`string | null`, optional)\n- returns `Promise\u003cstring\u003e` - path to a png file\n\nCaptures the window with the title `title` of type `bundle`. `bundle` is usually the name of the application, e.g. `Finder`, `Safari`, `Terminal`.\n\n## OS Support\n\nOnly `Mac OS X` at the time being. The source is well prepared for other systems, pull requests welcome.\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flinusu%2Fnode-capture-window","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flinusu%2Fnode-capture-window","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flinusu%2Fnode-capture-window/lists"}