Skip to main content
ff-serv provides a getPort utility that wraps the get-port library in Effect.

Installation

Usage

With Options

Preferred Port

Try a specific port first:

Port Range

Search within a range:

Exclude Ports

Avoid specific ports:

Type Signature

See get-port documentation for all options.

Complete Example

Use Cases

Development Servers

Automatically find available ports for parallel development:

Test Suites

Ensure tests don’t conflict:

Multi-Service Applications

Allocate ports for multiple services: