edgeport - v1.0.6
    Preparing search index...

    Function parseIpv6

    • Parses an IPv6 string (compressed or full, optionally with an embedded IPv4 tail) into 16 octets.

      Parameters

      • ip: string

        The IPv6 text.

      Returns Uint8Array

      The 16 address octets.

      If the input is not a valid IPv6 address.

      1.0.4

      import { parseIpv6 } from 'edgeport/dns';

      parseIpv6('2001:db8::1'); // 16 octets