{"id":15020152,"url":"https://github.com/waitingsong/node-windows-window-controller","last_synced_at":"2026-01-21T01:32:16.898Z","repository":{"id":57397894,"uuid":"105252179","full_name":"waitingsong/node-windows-window-controller","owner":"waitingsong","description":null,"archived":false,"fork":false,"pushed_at":"2019-03-14T13:03:55.000Z","size":385,"stargazers_count":1,"open_issues_count":2,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-27T15:59:07.276Z","etag":null,"topics":["hide","show","showwindow","windows"],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","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/waitingsong.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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":"2017-09-29T09:01:29.000Z","updated_at":"2019-03-14T13:00:41.000Z","dependencies_parsed_at":"2022-09-04T13:22:38.544Z","dependency_job_id":null,"html_url":"https://github.com/waitingsong/node-windows-window-controller","commit_stats":null,"previous_names":[],"tags_count":20,"template":false,"template_full_name":null,"purl":"pkg:github/waitingsong/node-windows-window-controller","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/waitingsong%2Fnode-windows-window-controller","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/waitingsong%2Fnode-windows-window-controller/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/waitingsong%2Fnode-windows-window-controller/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/waitingsong%2Fnode-windows-window-controller/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/waitingsong","download_url":"https://codeload.github.com/waitingsong/node-windows-window-controller/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/waitingsong%2Fnode-windows-window-controller/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28621629,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-20T23:49:58.628Z","status":"ssl_error","status_checked_at":"2026-01-20T23:47:29.996Z","response_time":117,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5: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":["hide","show","showwindow","windows"],"created_at":"2024-09-24T19:54:39.034Z","updated_at":"2026-01-21T01:32:16.880Z","avatar_url":"https://github.com/waitingsong.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# windows-window-controller\nWrap user32.ShowWindow() by node via [node-ffi](https://github.com/node-ffi/node-ffi)\n\n[![Version](https://img.shields.io/npm/v/windows-window-controller.svg)](https://www.npmjs.com/package/windows-window-controller)\n[![License](https://img.shields.io/badge/license-MIT-blue.svg)](https://opensource.org/licenses/MIT)\n![Available platform](https://img.shields.io/badge/platform-win32-blue.svg)\n[![Build status](https://ci.appveyor.com/api/projects/status/jh6io0q3wbo9s88r?svg=true)](https://ci.appveyor.com/project/waitingsong/node-windows-window-controller)\n[![Coverage Status](https://coveralls.io/repos/github/waitingsong/node-windows-window-controller/badge.svg)](https://coveralls.io/github/waitingsong/node-windows-window-controller)\n\n## What can I do with this?\nHide, show, maximize, minimize a window where you know either the app process PID, or window's hWnd, or keyword title of the window(s).\n\n## Installing\n```powershell\n# as global cmd-line\nnpm install --g windows-window-controller\n\n# as module\nnpm install --save windows-window-controller\n```\n\n\n\n## Usage\n```js\n# ------ as global cmd-line ------\n\n# by pid. 0x7632===30258\nhide-window --pid=0x7632\nhide-window --pid=30258\n# by keyword of title case sensitive\nhide-window --title=vim\n\n# 3: Activates the window and displays it as a maximized window.\nshow-window --pid=0x7632 --status=3\nshow-window --pid=30258 --status=3\nshow-window --title=vim --status=3\n\n# 1: Activates and displays a window. If the window is minimized or maximized, the system restores it to its original size and position. An application should specify this flag when displaying the window for the first time.\nnwwc --hwnd=0x702C6 --status=1\n\n\n# ------ as module ------\nconst nwwc = require(\"windows-window-controller\");\n\nnwwc.hide(0x7632).then((execRet) =\u003e console.log(execRet));\nnwwc.hide(30258).then((execRet) =\u003e console.log(execRet));\nnwwc.hide('vim').then((execRet) =\u003e console.log(execRet));\n\n# 2: Activates the window and displays it as a minimized window.\nnwwc.show(0x7632, 2).then((execRet) =\u003e console.log(execRet));\nnwwc.show(30258, 2).then((execRet) =\u003e console.log(execRet));\nnwwc.show('vim', 2).then((execRet) =\u003e console.log(execRet));\n\n# hide all windows relative to the main process, such as the window of child process\nnwwc.hide(0x7632, false).then((execRet) =\u003e console.log(execRet));\n```\n\n## Dependencies Troubleshooting\n- If installation of node-gyp fails:\nCheck out [node-gyp](https://github.com/nodejs/node-gyp) and [windows-build-tools](https://github.com/felixrieseberg/windows-build-tools)\n\n## Relevant\n- [Windows Api ShowWindow documentation](https://msdn.microsoft.com/en-us/library/windows/desktop/ms633548%28v=vs.85%29.aspx)\n\n\n## Known bugs:\n- The result of find hWnds by pid is empty when build by VS2017. It works when VS2013 and VS2015.\n\n## License\n[MIT](LICENSE)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwaitingsong%2Fnode-windows-window-controller","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwaitingsong%2Fnode-windows-window-controller","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwaitingsong%2Fnode-windows-window-controller/lists"}