Skip to content

Not responding process killer. Kill process on port you wanna use (if you accept terminal inquirer question) πŸ™ˆπŸ™‰πŸ™Š

License

Notifications You must be signed in to change notification settings

radarsu/kill-process-on-port

Folders and files

NameName
Last commit message
Last commit date

Latest commit

99a2786 Β· Dec 6, 2022

History

47 Commits
Nov 4, 2018
Nov 4, 2018
Nov 4, 2018
Nov 4, 2018
Nov 4, 2018
Nov 4, 2018
Nov 4, 2018
Nov 4, 2018
Nov 4, 2018
Dec 6, 2022
Aug 10, 2021
Jul 13, 2020
Nov 4, 2018
Nov 4, 2018
Nov 4, 2018

Repository files navigation

kill-process-on-port
Not responding, unresponsive process killer. Kill process on port you wanna use.

TypeScript process killer utility function that greatly speeds up development.

npm

"Buy Me A Coffee"

Description

If 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

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

import {
    killProcessOnPort,
} from 'kill-process-on-port';

(async () => {

    await killProcessOnPort(3000).catch((err) => {
        console.log(err);
    });

})();