Skip to content

kaori-killer/port

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

2 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

@kaori-killer/port

A simple CLI tool for checking running ports and killing processes.

English | ํ•œ๊ตญ์–ด

Installation

Global Installation (Recommended)

npm install -g @kaori-killer/port

Local Installation

npm install @kaori-killer/port

Usage

Global Installation

After global installation, you can use the port command from anywhere:

port ls
port check 3000
port kill 3000

Local Installation

With local installation, use npx or yarn:

Using npx:

npx port ls
npx port check 3000
npx port kill 3000

Using yarn:

yarn port ls
yarn port check 3000
yarn port kill 3000

Why Use port?

Direct Commands vs port

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

Key Benefits

  1. Simple Commands: Intuitive port commands instead of complex lsof syntax
  2. Readable Output: Formatted tables instead of raw data
  3. Friendly Error Handling: Clear messages when processes are not found
  4. Consistent Structure: All operations follow the port <action> pattern
  5. Kill Confirmation: Automatic confirmation messages after process termination

Development

Lint

npm run lint

Auto-fix

npm run lint:fix

Format

npm run format

Run

npm start

License

MIT

About

CLI tool for checking ports and killing processes ๐Ÿ‘€

Resources

Stars

Watchers

Forks

Packages

No packages published