denoland / denoland/std

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

Open
#4,795 0 comments 1 reaction 0 assignees View on GitHub
Dominant language
TypeScript
Stars
3.6k
Forks
681
PR merge metrics
No merged PRs in 30d

Description

The option may look like:

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

(Other option type suggestions are welcome)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.