Initial commit

This commit is contained in:
2025-03-07 19:22:02 +01:00
commit 4a98255d83
55743 changed files with 5280367 additions and 0 deletions
+17
View File
@@ -0,0 +1,17 @@
/**
* Determines whether a port is in use.
* @param port port number (0 - 65535)
* @returns true if port is in use; false otherwise.
*/
export declare function isPortInUse(port: number): Promise<boolean>;
/**
* Return the process ids using the port.
* @param port port number (0 - 65535)
* @returns Promise to array containing process ids, or empty if none.
*/
export declare function getProcessIdsForPort(port: number): Promise<number[]>;
/**
* Returns a random port number which is not in use.
* @returns Promise to number from 0 to 65535
*/
export declare function randomPortNotInUse(): Promise<number>;