Comparing version 1.1.1 to 1.1.2
{ | ||
"name": "ip-cidr", | ||
"version": "1.1.1", | ||
"version": "1.1.2", | ||
"description": "Module for working with CIDR (v4, v6)", | ||
@@ -5,0 +5,0 @@ "main": "./index.js", |
@@ -22,3 +22,3 @@ # Install | ||
let fn = (ip) => { | ||
const fn = (ip) => { | ||
// do something with each element of CIDR range | ||
@@ -34,3 +34,3 @@ data.push(ip) // ip is "ip-address" module object, because of option asAddressObject is true | ||
## Client side | ||
Load __/dist/ip-cidr.js__ as script and get the library in window.IPCIDR | ||
Load __/dist/ip-cidr.js__ as script and get the library in __window.IPCIDR__ | ||
@@ -58,6 +58,6 @@ # API | ||
### .toArray([options], [results]) | ||
get array of all ip in CIDR range | ||
you can get information by chunks using options.from and options.limit | ||
this options might be integer or big integer("jsbn" instance) | ||
you can pass second argument "results" (object) to get all chunk pagination information | ||
get an array of all ip in CIDR range | ||
you can get an information by chunks using options.from and options.limit | ||
this options might be an integer or a big integer("jsbn" instance) | ||
you can pass the second argument "results" (object) to get all chunk pagination information | ||
@@ -64,0 +64,0 @@ ### .arrayAction(fn, [options], [results]) |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
304087