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

x/pup/lib/core/port.ts>findFreePort

Universal process manager built in Deno
Latest
function findFreePort
import { findFreePort } from "https://deno.land/x/pup@1.0.3/lib/core/port.ts";

Asynchronously finds an available port within a specified range.

Parameters

optional
options: FindFreePortOptions = [UNSUPPORTED]
  • Options for the port search.

Returns

Promise<number>

A promise that resolves to the first available free port.