A CLI tool to kill processes by port
npm install kill-port-process-cliA CLI tool to kill processes by port. This tool allows you to terminate processes running on specified ports. It is useful for developers who need to quickly free up ports during development.
``bash`
npm install kill-port-process-cli`Global Install
bash`
npm install -g kill-port-process-clik$3
You can use the tool by running the or k-p or kill-port command followed by one or more port numbers.k$3
We recommend using the command for simplicity and ease of use.`$3
To kill processes running on ports 3000 and 3001:bash`
k 3000 3001`
orbash`
k-p 3000 3001`
orbash`
kill-port 3000 3001lsof$3
This tool is compatible with Windows, macOS, and Linux.$3
1. The tool identifies the process ID (PID) using the specified port.
2. It then terminates the process associated with that PID.$3
- On Unix-based systems, it uses the command.netstat` command.
- On Windows, it uses the