Skip to main content
Module

x/kill_port/mod.ts>killPort

Deno module that kills the process of an informed port.
Latest
function killPort
import { killPort } from "https://deno.land/x/kill_port@1.0.1/mod.ts";

Finds and kills the informed port process / task

Parameters

port: number

Port number

optional
options: KillPortOptions = [UNSUPPORTED]

(optional)

Returns

Promise<number | null>

Returns a promise with the port's PID or null if the port PID was not found

Example:

await killPort(8082);