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.3 to 1.0.4

2

package.json
{
"name": "ip-cidr",
"version": "1.0.3",
"version": "1.0.4",
"description": "Module for working with CIDR (v4, v6)",

@@ -5,0 +5,0 @@ "main": "./ip-cidr.js",

@@ -29,3 +29,3 @@ # Install

cidr.toArray({ asBigInteger: true }); // get array of all ip in CIDR range as big integer;
cidr.toRange() // get array of start and end ip as string [startIpAsString, endIpAsString]
cidr.toRange(); // get array of start and end ip as string [startIpAsString, endIpAsString]

@@ -37,3 +37,3 @@ ```

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)
options are the same in all of the library functions and might include asBigInteger, asAddressObject or asString (by default)

@@ -58,5 +58,4 @@ ### .start([options])

you can get information by chunks using options.from and options.limit
this options can be integer or big integer("jsbn" instance)
you can send results argument(object) to get all chunk information inside
pagination starts from 0, all results values are instance of "jsbn"
this options might be integer or big integer("jsbn" instance)
you can pass second argument "results" (object) to get all chunk pagination information

@@ -63,0 +62,0 @@ ### .arrayAction(fn, [options], [results])

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