🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
DemoInstallSign in
Socket

kill-port-process-cli

Package Overview
Dependencies
Maintainers
0
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

kill-port-process-cli

A CLI tool to kill processes by port

1.0.11
Source
npm
Version published
Weekly downloads
2
-75%
Maintainers
0
Weekly downloads
 
Created
Source

kill-port-process-cli npm downloads

A CLI tool to kill processes by port. This tool allows you to terminate processes running on specified ports. It is useful for developers who need to quickly free up ports during development.

Install

npm install kill-port-process-cli

Global Install

npm install -g kill-port-process-cli

Usage

You can use the tool by running the k or k-p or kill-port command followed by one or more port numbers.

We recommend using the k command for simplicity and ease of use.

example

To kill processes running on ports 3000 and 3001:

k 3000 3001

or

k-p 3000 3001

or

kill-port 3000 3001

Compatibility

This tool is compatible with Windows, macOS, and Linux.

How It Works

  • The tool identifies the process ID (PID) using the specified port.
  • It then terminates the process associated with that PID.

Finding the PID

  • On Unix-based systems, it uses the lsof command.
  • On Windows, it uses the netstat command.

Contributing

Contributions are welcome! Please open an issue or submit a pull request.

Keywords

process

FAQs

Package last updated on 09 Dec 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts