a command line utility for managing local ports
One line install
curl -o /usr/local/bin/port https://raw.githubusercontent.com/dylanstanfield/port/master/port && chmod +x /usr/local/bin/port
Kill the process running on a given port
$ port clear 5432
Cleared { port: 5432 }
Lists active ports
$ port list
Found 2 active ports
port command pid type fd
--------------------------------------------------------------------------
8000 node 320 IPv4 3u
3000 node 1170 IPv4 15u