https://github.com/radarsu/kill-process-on-port
Not responding process killer. Kill process on port you wanna use (if you accept terminal inquirer question) 🙈🙉🙊
https://github.com/radarsu/kill-process-on-port
blocking inquirer javascript javascript-library kill kill-process killer node nodejs nodejs-library port process typescript typescript-library utility-library
Last synced: 6 months ago
JSON representation
Not responding process killer. Kill process on port you wanna use (if you accept terminal inquirer question) 🙈🙉🙊
- Host: GitHub
- URL: https://github.com/radarsu/kill-process-on-port
- Owner: radarsu
- License: mit
- Created: 2017-08-28T16:47:57.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2023-04-19T01:55:46.000Z (about 2 years ago)
- Last Synced: 2024-10-12T23:20:14.909Z (7 months ago)
- Topics: blocking, inquirer, javascript, javascript-library, kill, kill-process, killer, node, nodejs, nodejs-library, port, process, typescript, typescript-library, utility-library
- Language: CSS
- Homepage: https://radarsu.radrat.pl/kill-process-on-port/
- Size: 1.66 MB
- Stars: 10
- Watchers: 5
- Forks: 3
- Open Issues: 12
-
Metadata Files:
- Readme: README.md
- Contributing: .github/CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
README
Not responding, unresponsive process killer. Kill process on port you wanna use.
TypeScript process killer utility function that greatly speeds up development.
[](https://www.buymeacoffee.com/radarsu)
## DescriptionIf you work with application that occupies some port and sometimes hangs up - you definitely should start using `kill-process-on-port`. It shows you a prompt in console, then you choose to either kill an application occupying port or not. Safe and sound!
## Installation
```sh
npm i kill-process-on-port
```## Features
- TypeScript with documentation in comments.
- Both Windows and Linux support. Uses built-in commands: `netstat` on Windows and `fuser` on Linux.
- Prompts for confirmation before killing process (by inquirer).## Usage
```ts
import {
killProcessOnPort,
} from 'kill-process-on-port';(async () => {
await killProcessOnPort(3000).catch((err) => {
console.log(err);
});})();
```