Installation
npm install --save @types/pid-from-port
Summary
This package contains type definitions for pid-from-port (https://github.com/kevva/pid-from-port#readme).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/pid-from-port.
index.d.ts
export = pidFromPort;
/**
* Get PID from a port
* @param port Port to lookup.
*/
declare function pidFromPort(port: number): Promise<number>;
declare namespace pidFromPort {
/**
* Get PIDs for a list of ports.
* @param ports Ports to lookup.
* @returns A `Promise<Map>` with the port as key and the PID as value.
*/
function all(ports: number[]): Promise<Map<number, number>>;
/**
* Get all PIDs from ports.
* @returns A `Promise<Map>` with the port as key and the PID as value.
*/
function list(): Promise<Map<number, number>>;
}
Additional Details
- Last updated: Tue, 07 Nov 2023 09:09:39 GMT
- Dependencies: none
Credits
These definitions were written by BendingBender.