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