0.0.7 • Published 11 years ago

cidr_match v0.0.7

Weekly downloads
220
License
-
Repository
github
Last release
11 years ago

cidr_match

This is a simple node.js module for determining whether a given IPv4 address occurs within a given CIDR mask.

We only consider IPv4 addresses, by desgin.

Example

 //
 //  Require our code.
 //
 var c = require( "cidr_match" );

 //
 // Does it match?
 //
 if ( c.cidr_match ("10.0.0.24", "10.0.0.0/24" ) )
 {
     console.log( "Success" );
 }

Steve

0.0.7

11 years ago

0.0.6

11 years ago

0.0.5

11 years ago

0.0.4

11 years ago

0.0.3

11 years ago

0.0.2

11 years ago