A blazing fast, beautiful CLI tool to instantly identify and kill processes hoarding your local development ports.
Getting EADDRINUSE: address already in use :::3000 multiple times a day? You usually have to Google lsof -i :3000, copy the PID, and type kill -9 <PID>. port-sniper automates this into a single, satisfying command.
- ✨ Zero configuration — just type
snipe <port> - 🎨 Beautiful UI powered by
@clack/prompts - ⚡ Lightning fast — uses native
lsofandkill -9under the hood - 🛡️ Interactive safety prompt before killing anything
npx @dinakars777/port-sniper 3000Or install globally for the short snipe alias:
npm install -g @dinakars777/port-sniper
snipe 3000
snipe 8080- Searches for processes bound to the provided port
- If the port is free, exits cleanly
- Displays the
Command,PID, andUserowning the process - Prompts
Kill this process? [y/N]before doing anything - Executes a forceful termination and frees your port
| Package | Purpose |
|---|---|
@clack/prompts |
Beautiful interactive CLI UI |
execa |
Native process execution |
| TypeScript | Type-safe implementation |
git clone https://github.com/dinakars777/port-sniper.git
cd port-sniper
npm install
npm run devMIT