ipFunctions
Providing functionality to check ip validation and convert CIDR notation to IP ranges. also allowing for single ips to be converted to long and back again.
example
var cidr = ;console;console;console;var range = cidr;console;
functions
; // convert ip String to Number (returns false if invalid); // convert ip Number to String (returns false if invalid); // convert CIDR range to 2 item array (lowest IP and highest IP) (returns false if invalid); // check if IP string is valid; // check if CIDR string is valid
install
With npm
npm install -g ipFunctions
license
MIT