Package Exports
- localhost-port-check
- localhost-port-check/index.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (localhost-port-check) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
localhost-checker
CLI tool to check listening localhost ports on macOS.
Installation
npm install
npm link # optional: install globally as 'lh' commandUsage
# Run directly
node index.js
# Or with npm
npm start
# If globally installed
lhOutput
Displays a table of all listening ports with:
- Port: Port number (red for < 1024, green otherwise)
- Address: Bind address (127.0.0.1 = local only, * = all interfaces)
- PID: Process ID
- Command: Process name
- User: Running user
Example
🔍 Localhost Listening Ports
┌───────┬───────────┬───────┬───────────┬───────┐
│ Port │ Address │ PID │ Command │ User │
├───────┼───────────┼───────┼───────────┼───────┤
│ 3000 │ 127.0.0.1 │ 12345 │ node │ user │
├───────┼───────────┼───────┼───────────┼───────┤
│ 3306 │ 127.0.0.1 │ 3946 │ mysqld │ user │
└───────┴───────────┴───────┴───────────┴───────┘
Total: 2 port(s) listeningLicense
ISC