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.1.1 to 1.1.2

2

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

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