function bareHostname
bareHostname(url: URL): string

Returns url's hostname without the brackets URL.hostname keeps around an IPv6 literal: the address checks here read it, and fetch.ts hands it to curl's --resolve.

Parameters

url: URL

Return Type

string

Usage

import { bareHostname } from "api/remote/public-address.ts";