Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
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.0-rc.39/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.