Skip to content

printIpv6Address

printIpv6Address(address): string

Defined in: packages/net-address/src/ipv6/print-ipv6.ts:56

Prints the RFC 5952 canonical form: lowercase, no leading zeros in a group, the longest run of zero groups compressed to :: — leftmost on a tie, and never for a single group. An IPv4-mapped address is printed ::ffff:a.b.c.d, per §5.

O(1): the address has a fixed eight groups.

BitAddress

string

RangeError When the address is not 128 bits wide.