Skip to main content
Deno 2 is finally here 🎉️
Learn more
Go to Latest
The Standard Library has been moved to JSR. See the blog post for details.
interface GetAvailablePortOptions
import { type GetAvailablePortOptions } from "https://deno.land/std@0.216.0/net/get_available_port.ts";

Options for getAvailablePort.

Properties

optional
preferredPort: number

A port to check availability of first. If the port isn't available, fall back to another port.