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

x/dtils/deps.ts>porter.getAvailablePortSync

The best unofficial library of utilities for Deno applications
Go to Latest
function porter.getAvailablePortSync
import { porter } from "https://deno.land/x/dtils@2.3.1/deps.ts";
const { getAvailablePortSync } = porter;

Finds a free port based on the options Requires --allow-net flag

Parameters

optional
options: IOptions = [UNSUPPORTED]

Returns

number | undefined