{"id":30207615,"url":"https://github.com/nstechbytes/restore-window","last_synced_at":"2026-03-07T04:01:26.232Z","repository":{"id":295011841,"uuid":"988813516","full_name":"NSTechBytes/restore-window","owner":"NSTechBytes","description":" Node.js library to restore or minimize a Windows window by its exact title.","archived":false,"fork":false,"pushed_at":"2025-05-24T07:03:40.000Z","size":15,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-18T16:15:45.716Z","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-23T05:45:07.000Z","updated_at":"2025-05-24T07:02:21.000Z","dependencies_parsed_at":null,"dependency_job_id":"9c37a059-4415-4889-a531-ad72fb5d52a6","html_url":"https://github.com/NSTechBytes/restore-window","commit_stats":null,"previous_names":["nstechbytes/restore-window"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/NSTechBytes/restore-window","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NSTechBytes%2Frestore-window","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NSTechBytes%2Frestore-window/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NSTechBytes%2Frestore-window/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NSTechBytes%2Frestore-window/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/NSTechBytes","download_url":"https://codeload.github.com/NSTechBytes/restore-window/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NSTechBytes%2Frestore-window/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30207390,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-07T03:24:23.086Z","status":"ssl_error","status_checked_at":"2026-03-07T03:23:11.444Z","response_time":53,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: 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:48.810Z","updated_at":"2026-03-07T04:01:26.189Z","avatar_url":"https://github.com/NSTechBytes.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# restore-window\n\n**CLI + Node.js library** to restore or minimize a Windows window by its exact title, available with both synchronous and asynchronous APIs.\n\n---\n\n## 🔧 Features\n\n- **Restore** a minimized window by title  \n- **Minimize** a visible window by title  \n- **Zero-JS-shim CLI**: invokes the native `restore-window.exe` directly  \n- **Node.js API** for programmatic control (sync \u0026 async)  \n- **Windows-only** (skips install on other platforms)\n\n---\n\n## 📦 Installation\n\n```bash\nnpm install -g restore-window\n```\n\n\u003e ⚠️ Windows only. On non-Windows platforms the installer will warn and exit harmlessly.\n\n---\n\n## 🚀 Usage\n\n### CLI\n\nInvoke the native binary directly:\n\n```bash\nrestore-window -t \"Untitled - Notepad\" -restore\nrestore-window -t \"My App\"            -minimize\n```\n\n* `-t \"\u003cwindow title\u003e\"`  \n* Exactly **one** of:  \n  * `-restore`  \n  * `-minimize`\n\nIf the window is not found or already in the requested state, an error or status message is printed.\n\n---\n\n### API\n\n#### Synchronous (blocking)\n\n```js\nconst rw = require('restore-window');\n\n// restore a window\ntry {\n  const msg = rw.restoreSync(\"Untitled - Notepad\");\n  console.log(msg); // → Window 'Untitled - Notepad' restored.\n} catch (err) {\n  console.error(err.message);\n}\n\n// minimize a window\ntry {\n  const msg = rw.minimizeSync(\"Calculator\");\n  console.log(msg); // → Window 'Calculator' minimized.\n} catch (err) {\n  console.error(err.message);\n}\n```\n\n#### Asynchronous (non-blocking)\n\n```js\nconst rw = require('restore-window');\n\n(async () =\u003e {\n  try {\n    const msg1 = await rw.restore(\"Untitled - Notepad\");\n    console.log(msg1); // → Window 'Untitled - Notepad' restored.\n\n    const msg2 = await rw.minimize(\"Calculator\");\n    console.log(msg2); // → Window 'Calculator' minimized.\n  } catch (err) {\n    console.error(err.message);\n  }\n})();\n```\n\n---\n\n## 🤝 Contributing\n\n1. Fork the repository  \n2. Create a feature branch (`git checkout -b feature/my-feature`)  \n3. Commit your changes (`git commit -m \"feat: add ...\"`)  \n4. Push to the branch (`git push origin feature/my-feature`)  \n5. Open a Pull Request\n\nPlease ensure all new code is covered by tests and follows the existing style.\n\n---\n\n## 📄 License\n\nThis project is licensed under the **MIT License**. See [LICENSE](LICENSE) for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnstechbytes%2Frestore-window","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnstechbytes%2Frestore-window","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnstechbytes%2Frestore-window/lists"}