Skip to content

@pumpkin-plugins/port-mapping API / ipv4 / parseIpv4

Function: parseIpv4() ​

parseIpv4(text): Ipv4 | undefined

Defined in: tools/port-mapping/src/ipv4.ts:15

Reads a dotted IPv4 address.

Parameters ​

text ​

string

For example 192.168.1.1.

Returns ​

Ipv4 | undefined

The four octets, or undefined when the text isn't a dotted quad.

Pumpkin Plugins documentation