A simple CLI tool for checking running ports and killing processes.
npm install -g @kaori-killer/portnpm install @kaori-killer/portAfter global installation, you can use the port command from anywhere:
port ls
port check 3000
port kill 3000With local installation, use npx or yarn:
Using npx:
npx port ls
npx port check 3000
npx port kill 3000Using yarn:
yarn port ls
yarn port check 3000
yarn port kill 3000| Task | Direct Command | port |
|---|---|---|
| List Ports | lsof -i -P -n | grep LISTEN |
port ls |
| Check Port | lsof -i :3000 -P -n |
port check 3000 |
| Kill Process | lsof -ti :3000 | xargs kill |
port kill 3000 |
- Simple Commands: Intuitive
portcommands instead of complexlsofsyntax - Readable Output: Formatted tables instead of raw data
- Friendly Error Handling: Clear messages when processes are not found
- Consistent Structure: All operations follow the
port <action>pattern - Kill Confirmation: Automatic confirmation messages after process termination
npm run lintnpm run lint:fixnpm run formatnpm startMIT