Comparing version 1.0.2 to 1.0.3
{ | ||
"name": "ip-cidr", | ||
"version": "1.0.2", | ||
"version": "1.0.3", | ||
"description": "Module for working with CIDR (v4, v6)", | ||
@@ -5,0 +5,0 @@ "main": "./ip-cidr.js", |
@@ -33,11 +33,11 @@ # Install | ||
# FULL API | ||
### .formatIP(address, options) | ||
returns the "ip-address" module object ip address in the specified in options format | ||
# API | ||
### .formatIP(address, [options]) | ||
returns the "ip-address" module object in the necessary format | ||
options are the same in all of the library functions and may include asBigInteger, asAddressObject or asString (by default) | ||
### .start(options) | ||
### .start([options]) | ||
get start ip | ||
### .end(options) | ||
### .end([options]) | ||
get end ip | ||
@@ -48,9 +48,9 @@ | ||
### .toRange(options) | ||
### .toRange([options]) | ||
get array of start and end ip [startIp, endIp] | ||
### .toObject(options) | ||
### .toObject([options]) | ||
get object of start and end ip {start: startIp, end: endIp} | ||
### .toArray(options, results) | ||
### .toArray([options], [results]) | ||
get array of all ip in CIDR range | ||
@@ -62,3 +62,3 @@ you can get information by chunks using options.from and options.limit | ||
### .arrayAction(fn, options, results) | ||
### .arrayAction(fn, [options], [results]) | ||
run fn for every element of CIDR range | ||
@@ -65,0 +65,0 @@ you can use the same chunk options as in .toArray |
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
9606