Module

Node.Net

Package
purescript-node-net
Repository
purescript-node/purescript-node-net

#isIP Source

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 Source

isIPv4 :: String -> Boolean

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

#isIPv6 Source

isIPv6 :: String -> Boolean

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