{"id":25422543,"url":"https://github.com/mcluck90/win-opacity-js","last_synced_at":"2025-08-26T20:17:15.973Z","repository":{"id":146515033,"uuid":"132953584","full_name":"MCluck90/win-opacity-js","owner":"MCluck90","description":"Access and change the opacity of many windows on the Windows operating system","archived":false,"fork":false,"pushed_at":"2018-05-11T14:24:14.000Z","size":22,"stargazers_count":0,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-05-13T20:36:01.261Z","etag":null,"topics":["ffi","nodejs","opacity","transparency","windows"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/MCluck90.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2018-05-10T20:57:29.000Z","updated_at":"2018-05-11T15:53:54.000Z","dependencies_parsed_at":"2023-05-17T17:30:47.765Z","dependency_job_id":null,"html_url":"https://github.com/MCluck90/win-opacity-js","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/MCluck90/win-opacity-js","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MCluck90%2Fwin-opacity-js","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MCluck90%2Fwin-opacity-js/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MCluck90%2Fwin-opacity-js/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MCluck90%2Fwin-opacity-js/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/MCluck90","download_url":"https://codeload.github.com/MCluck90/win-opacity-js/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MCluck90%2Fwin-opacity-js/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":272253280,"owners_count":24900872,"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","status":"online","status_checked_at":"2025-08-26T02:00:07.904Z","response_time":60,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["ffi","nodejs","opacity","transparency","windows"],"created_at":"2025-02-16T21:35:25.049Z","updated_at":"2025-08-26T20:17:15.937Z","avatar_url":"https://github.com/MCluck90.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# win-opacity\n\nRead and write the opacity values of windows on the Windows operating system.\n\n## Example\n\n```js\nconst winOpacity = require('win-opacity');\nconst windows = winOpacity.getWindows();\nfor (const win of windows) {\n  console.log(win.title); // Title on the window\n  const opacity = winOpacity.getOpacity(win);\n  // Make the window slightly more transparent\n  winOpacity.setOpacity(win, opacity - 10);\n}\n```\n\n## Type Definitions\n\nDefinitions given in TypeScript format.\n\n```typescript\ntype WindowHandle = number;\ninterface NativeWindow {\n  string title;\n  WindowHandle handle;\n};\n```\n\n## API\n\n- `getWindows() -\u003e NativeWindow[]`\n  - Gets all visible windows\n- `getOpacity(window: WindowHandle | NativeWindow) -\u003e number`\n  - Returns the opacity of a window. The value will be in the range of [0-255]\n- `setOpacity(window: WindowHandle | NativeWindow, opacity: number) -\u003e void`\n  - Sets the opacity of a window. `opacity` must be in the range of [0-255]","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmcluck90%2Fwin-opacity-js","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmcluck90%2Fwin-opacity-js","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmcluck90%2Fwin-opacity-js/lists"}