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