@its_seraj/port-killer
v1.0.0
Published
CLI tool to list open ports and kill processes
Readme
port-killer
A Windows CLI tool to list open ports and interactively kill the processes using them.
Prerequisites
- Windows 10 or later
- Node.js v16+ — download from https://nodejs.org
Verify you have Node.js installed:
node -v
npm -vInstallation
1. Clone or download the project
cd C:\Users\serajkhan_bamboobox
git clone <repo-url> port-killer
cd port-killerOr if you already have the folder:
cd C:\Users\serajkhan_bamboobox\port-killer2. Install dependencies
npm install3. Build
This bundles everything into a single file at dist/killport.js with no runtime dependencies.
npm run build4. Run
node dist/killport.jsGlobal install (run from anywhere)
After building, install globally so you can type port-killer from any terminal:
npm install -g .Then run it from anywhere:
port-killerTo uninstall:
npm uninstall -g port-killerUsage
node dist/killport.js # show user-level ports only (default)
node dist/killport.js --all # include system ports
node dist/killport.js --debug # show what is being filtered and whyControls
| Key | Action |
|-------------|-------------------------------|
| ↑ / ↓ | Move cursor |
| Space | Select / deselect a process |
| Enter | Confirm selection and kill |
| Esc | Exit |
After killing a port the list refreshes automatically so you can kill more.
Notes
- Run your terminal as Administrator if you need to kill processes owned by other users or services.
- The
dist/killport.jsfile is fully self-contained — you can copy it to any Windows machine with Node.js and run it directly withoutnpm install. - Use
--allflag if your port is not showing up (it may be running under a service account). - Use
--debugto see every port and whether it is being filtered, to help diagnose missing entries.
