Socket
Socket
Sign inDemoInstall

ip-subnet-calculator

Package Overview
Dependencies
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ip-subnet-calculator - npm Package Compare versions

Comparing version 1.0.1 to 1.0.2

19

lib/ip-subnet-calculator.js

@@ -47,3 +47,3 @@ /*jshint strict: false, bitwise: false */

*
* <code>var result = [
* <code>var result = [
* {

@@ -65,3 +65,3 @@ * ipLow : 2071689984,

* </code>
* @public
* @public
*/

@@ -118,3 +118,3 @@ calculate : function( ipStart, ipEnd )

* getMaskRange()
* @public
* @public
*/

@@ -146,3 +146,3 @@ calculateSubnetMask : function( ip, prefixSize )

* getMaskRange()
* @public
* @public
*/

@@ -187,4 +187,4 @@ calculateCIDRPrefix : function( ip, subnetMask )

*
* @param {int} ipNum IP start point
* @param {int} ipEndNum IP end point
* @param {int} ipNum IP start point
* @param {int} ipEndNum IP end point
* @return {object|null} Returns null on failure, otherwise an object with the following fields:

@@ -244,3 +244,3 @@ *

* invertedSize - Number of relevant bits in the inverted mask
* @private
* @private
*/

@@ -278,3 +278,3 @@ getMaskRange : function( ipNum, prefixSize )

* @return {int} Returns the bitmask
* @private
* @private
*/

@@ -300,3 +300,3 @@ getPrefixMask : function( prefixSize )

* @return {int} Returns the bitmask
* @private
* @private
*/

@@ -352,3 +352,2 @@ getMask : function( maskSize )

}
};

@@ -355,0 +354,0 @@

@@ -6,3 +6,3 @@ {

"homepage" : "https://github.com/franksrevenge/IPSubnetCalculator",
"version" : "1.0.1",
"version" : "1.0.2",
"main" : "lib/ip-subnet-calculator.js",

@@ -9,0 +9,0 @@ "keywords" : [ "ip", "subnet", "network", "netmask", "calculator" ],

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