Module

Node.Net

#isIP

isIP :: String -> Int

Returns 4 if the String is a valid IPv4 address, 6 if the String is a valid IPv6 address, and 0 otherwise.

#isIPv4

isIPv4 :: String -> Boolean

Returns true if the String is a valid IPv4 address, and false otherwise.

#isIPv6

isIPv6 :: String -> Boolean

Returns true if the String is a valid IPv4 address, and false otherwise.

Modules