portio
Version:
A beautiful terminal UI for managing processes on network ports (Windows only)
14 lines (13 loc) • 608 B
TypeScript
export interface ProcessInfo {
pid: number;
port: number;
processName: string;
command: string;
fullCommand?: string;
}
export declare function isDevPort(port: number): boolean;
export declare function getProcessesOnPorts(showAll?: boolean): Promise<ProcessInfo[]>;
export declare function getProcessOnPort(port: number): Promise<ProcessInfo | null>;
export declare function killProcess(pid: number): Promise<boolean>;
export declare function checkProcessExists(pid: number): Promise<boolean>;
export declare function killProcessElevated(pid: number, processName: string): Promise<void>;