import { getAvailablePort } from "https://deno.land/std@0.220.1/net/mod.ts";
Returns an available network port.
Examples
Example 1
Example 1
import { getAvailablePort } from "https://deno.land/std@0.220.1/net/get_available_port.ts";
const port = getAvailablePort();
Deno.serve({ port }, () => new Response("Hello, world!"));
Parameters
optional
options: GetAvailablePortOptions