get-ip-range
Advanced tools
Comparing version 1.1.4 to 1.1.5
{ | ||
"name": "get-ip-range", | ||
"version": "1.1.4", | ||
"version": "1.1.5", | ||
"description": "Simple utility to convert either CIDR notation or two IP addresses to an array of the range of IP addresses", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -20,3 +20,7 @@ # get-ip-range | ||
getIPRange('192.168.1.134/29'); | ||
// Returns an array of 6 IP addresses | ||
// Returns an object: | ||
{ | ||
error: null, | ||
value: array of 6 IP addresses | ||
} | ||
``` | ||
@@ -30,3 +34,11 @@ | ||
getIPRange('192.168.1.129', '192.168.1.134'); | ||
// Returns an array of 6 IP addresses | ||
// Returns an object: | ||
{ | ||
error: null, | ||
value: array of 6 IP addresses | ||
} | ||
``` | ||
**Error scenario** | ||
If the supplied IP address(es) are invalid, the response.error value will be an [Error](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Error) |
4428
43