tooling TypeScript maintained cliinfra

kill-process-on-port

Cross-platform CLI to kill whatever is holding a TCP port hostage.

Why

EADDRINUSE: address already in use :::3000 — every developer’s daily toll. Linux has fuser, macOS has lsof, Windows has netstat plus a two-step lookup. All three need different commands and different flags.

kill-process-on-port is one command that works on all three:

npx kill-process-on-port 3000

It finds the process bound to the port and kills it. That’s the whole tool. Use it in npm scripts, CI, or anywhere you’d otherwise copy-paste a platform-specific snippet.