A simple cli tool to help you identify and kill processes which use a given port.
npm install whoport

npm i -g whoport`$3
Tested on:
- macOS 10.10.5, 10.11.4, 10.14.6
- Windows 7
- Debian 7.8 (wheezy)
Due to the use of
`netstat` for Windows operating systems, whoport should also work on Windows Vista and above. (thanks @lewisje for the hint!)$3
- OSX uses
`lsof` to check for processes and `kill -9` to kill one or more PIDs.
- Windows uses `netstat` to check for processes and `taskkill` to kill the PID.$3
`
check and display PID and process name if present
whoport 9090kill process which uses port
whoport 9090 -k
``Pull Requests are very welcome!
If you find any issues, please report them via Github Issues and include your nodejs version and OS.