kill-process-on-port
TypeScript icon, indicating that this package has built-in type declarations

1.0.2 • Public • Published

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.

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 and 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);
    });
 
})();

Readme

Keywords

none

Package Sidebar

Install

npm i kill-process-on-port

Weekly Downloads

11

Version

1.0.2

License

MIT

Unpacked Size

17.1 kB

Total Files

12

Last publish

Collaborators

  • radarsu