{"id":30207621,"url":"https://github.com/nstechbytes/isdesktop-visible","last_synced_at":"2026-03-07T06:31:13.912Z","repository":{"id":295939671,"uuid":"991767642","full_name":"NSTechBytes/isdesktop-visible","owner":"NSTechBytes","description":"A Node.js wrapper around a native Windows binary that detects when the desktop is shown or hidden (e.g., via Show Desktop or Win+D).","archived":false,"fork":false,"pushed_at":"2025-05-28T06:23:59.000Z","size":21,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-10-19T21:06:54.555Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"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/NSTechBytes.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-05-28T05:58:31.000Z","updated_at":"2025-05-28T06:24:02.000Z","dependencies_parsed_at":"2025-05-28T06:37:55.915Z","dependency_job_id":null,"html_url":"https://github.com/NSTechBytes/isdesktop-visible","commit_stats":null,"previous_names":["nstechbytes/isdesktop-visible"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/NSTechBytes/isdesktop-visible","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NSTechBytes%2Fisdesktop-visible","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NSTechBytes%2Fisdesktop-visible/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NSTechBytes%2Fisdesktop-visible/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NSTechBytes%2Fisdesktop-visible/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/NSTechBytes","download_url":"https://codeload.github.com/NSTechBytes/isdesktop-visible/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NSTechBytes%2Fisdesktop-visible/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30209086,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-07T05:23:27.321Z","status":"ssl_error","status_checked_at":"2026-03-07T05:00:17.256Z","response_time":53,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":[],"created_at":"2025-08-13T16:11:55.664Z","updated_at":"2026-03-07T06:31:13.904Z","avatar_url":"https://github.com/NSTechBytes.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# isdesktop-visible\n\nA Node.js wrapper around a native Windows binary that detects when the desktop is shown or hidden (e.g., via Show Desktop or Win+D).\n\n## Installation\n\n```bash\nnpm install isdesktop-visible\n````\n\n## Usage\n\n```js\nconst { monitorDesktop } = require('isdesktop-visible');\n\nconst proc = monitorDesktop((state, line) =\u003e {\n    console.log(`Desktop is now ${state}`);\n    console.log(`Raw output: ${line}`);\n});\n```\n\n## Notes\n\n* Only works on **Windows**.\n* Requires `isdesktop-visible.exe` in the `bin/Release` folder.\n* You can stop the process manually using `proc.kill()`.\n\n\n\n### 4. ✅ Usage in Another Project\n\n\n```js\nconst { monitorDesktop } = require('isdesktop-visible');\n\nmonitorDesktop((state, raw) =\u003e {\n    if (state === 'visible') {\n        console.log('User has minimized all windows!');\n    } else {\n        console.log('User has focused on a window again.');\n    }\n});\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnstechbytes%2Fisdesktop-visible","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnstechbytes%2Fisdesktop-visible","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnstechbytes%2Fisdesktop-visible/lists"}