Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

parseHost

It takes a string, and returns an object with two properties: hostname and port

function parseHost(input?: string): ParsedHost;
§
parseHost(input?: string): ParsedHost
[src]

§Parameters

§
input?: string optional
[src]

§Return Type

§

A function that takes a string and returns an object with two properties: hostname and port.