Formats 16 octets as a canonical compressed IPv6 string.
The longest run of zero groups (of length two or more) is collapsed to ::; each remaining group is lowercase hex with no leading zeros.
::
Exactly 16 octets.
The compressed IPv6 text (e.g. 2001:db8::1).
2001:db8::1
If bytes is not 16 octets long.
bytes
1.0.4
import { formatIpv6 } from 'edgeport/dns';formatIpv6(new Uint8Array(16)); // '::' Copy
import { formatIpv6 } from 'edgeport/dns';formatIpv6(new Uint8Array(16)); // '::'
Formats 16 octets as a canonical compressed IPv6 string.
The longest run of zero groups (of length two or more) is collapsed to
::; each remaining group is lowercase hex with no leading zeros.