poku
Version:
🐷 Poku makes testing easy for Node.js, Bun, Deno, and you at the same time.
6 lines (5 loc) • 346 B
TypeScript
/** Returns an array containing the ID of all processes listening to the specified port */
export declare const getPIDs: ((port: number | number[]) => Promise<number[]>) & {
/** Returns an array containing the ID of all processes listening to the specified port range */
range: (startsAt: number, endsAt: number) => Promise<number[]>;
};