edgeport - v1.0.6
    Preparing search index...

    Function parseIpv4

    • Parses a dotted IPv4 string into 4 octets.

      Parameters

      • ip: string

        The dotted-quad address.

      Returns Uint8Array

      The 4 address octets.

      If the input is not four decimal octets in 0..255.

      1.0.4

      import { parseIpv4 } from 'edgeport/dns';

      parseIpv4('93.184.216.34'); // Uint8Array [93, 184, 216, 34]