Not responding, unresponsive process killer. Kill process on port you wanna use.
TypeScript process killer utility function that greatly speeds up development.
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!
npm i kill-process-on-port
- TypeScript with documentation in comments.
- Both Windows and Linux support. Uses built-in commands:
netstat
on Windows andfuser
on Linux. - Prompts for confirmation before killing process (by inquirer).
import {
killProcessOnPort,
} from 'kill-process-on-port';
(async () => {
await killProcessOnPort(3000).catch((err) => {
console.log(err);
});
})();