@qzda/port
v0.1.0
Published
Cross-platform CLI tool to list listening TCP ports
Readme
@qzda/port
Cross-platform CLI tool to list listening TCP ports and the programs occupying them.
Install
npm install -g @qzda/portUsage
port listExample output:
PID PORT PROGRAM
----- ---- -------
1234 22 sshd
5678 80 nginx
12345 3000 nodeSupported Platforms
| Platform | Method |
|----------|--------|
| Linux | ss -tlnp (fallback netstat -tlnp) |
| macOS | lsof -iTCP -sTCP:LISTEN -P -n |
| Windows | netstat -ano + tasklist |
Development
git clone [email protected]:qzda/port.git
cd port
npm install
npm run build
node dist/index.js listLicense
MIT
