parseHostIt 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§ParsedHost[src]A function that takes a string and returns an object with two properties: hostname and port.