Converts an ipv4 address to or from uint32 number.
string or number reflecting the input value in its counter format.
convertIpv4("192.168.1.1"); // "3232235777"convertIpv4(3232235777); // "192.168.1.1"convertIpv4(1); // "1.0.0.0"convertIpv4("1"); // Throws an error for invalid IPv4 address
The value to convert (string, number, or array of numbers).
Generated using TypeDoc
Converts an ipv4 address to or from uint32 number.
Returns
string or number reflecting the input value in its counter format.
Example