Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

ip-cidr

Package Overview
Dependencies
Maintainers
1
Versions
50
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ip-cidr - npm Package Compare versions

Comparing version 1.0.2 to 1.0.3

2

package.json
{
"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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc