Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/dtils/deps.ts>porter.getAvailablePort

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

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

Parameters

optional
options: IOptions = [UNSUPPORTED]

Returns

Promise<number | undefined>