Util.ip Module
Last updated
Was this helpful?
Last updated
Was this helpful?
Import
Returns true if the argument is a valid IPv4 address.
Arguments
ip
(String)
Returns
Boolean
Returns true if the argument is a valid IPv4 address range.
Arguments
cidr
(String)
Returns
Boolean
Returns true if the ip
argument is a valid IPv4 address and contained array
.
Arguments
array
(String[]) An array of ip addresses or cidr ranges against which to match ip
ip
(String)
Returns
Boolean
Converts an IPv4 string to an integer.
Arguments
ip
(String)
Returns
Number
Converts an integer to an IPv4 string.
Arguments
int
(Number)
Returns
String
Returns true if ip
is contained in the cidr
range.
Arguments
ip
(String)
cidr
(String)
Returns
Boolean