jkfran/killport

A mode that just prints out what's listening?

samwho opened this issue · 8 comments

Is your feature request related to a problem? Please describe.

No.

Describe the solution you'd like

It would be nice to be able to just print what process is listening to a port.

Describe alternatives you've considered

I was considering writing a tool to do this myself, and was looking to see if anyone had built it. This is the closest thing I've found.

Additional context

If this feature request is something you're not going to do, would you mind if I created a tool to do this and used some of the code from this repo? 🙏

Any reason for not using something like netstat for this purpose? It would be great if you could explain your workflow if you don't mind!

I forget the incantation. I just want to run something like whatslistening 3000. I could alias it, but it'd be nice to be able to get nicely formatted and detailed information about the process.

I think we should implement something like --dry-run. So killport --dry-run 8080 could report the PID listening on port 8080 and some extra info.

I like that a lot.

Has it been implemented now?

killport --dry-run 8080 is this coming? Thanks.

Yes, it will be on v1. Should be ready in the next weeks

Added on v1. Update killport to v1 to have --dry-run