UNPKG

express-port-switcher

Version:

A smart port management tool that automatically finds and forwards to available ports when preferred ports are in use

3 lines (2 loc) 187 B
export declare const isPortAvailable: (port: number) => Promise<boolean>; export declare const findNextAvailablePort: (startPort: number, maxAttempts?: number) => Promise<number | null>;