deno_std icon indicating copy to clipboard operation
deno_std copied to clipboard

[feature request(net)] add range support for preferredPort option in getAvailablePort

Open kt3k opened this issue 1 year ago • 0 comments

The option may look like:

getAvailablePort({ preferredPort: { start: 8000, max: 20 } });
// or
getAvailablePort({ preferredPort: [8000, 8001, ..., 8019] });

(Other option type suggestions are welcome)

kt3k avatar May 21 '24 10:05 kt3k