Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

std/net/mod.ts>GetAvailablePortOptions

The Deno Standard Library
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.222.1/net/mod.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.