subnet-overlap

1.0.0 • Public • Published

subnet-overlap

npm version

NPM

Node.js

Install

$ npm i subnet-overlap
const subnetOverlap = require('subnet-overlap')

Example

subnetOverlap(['172.22.2.0/24'], '172.22.2.0/24') // true
 
subnetOverlap(['172.22.2.0/24'], '172.22.3.0/24') // false

Browser

Example

<script src="subnetOverlap.js"></script>
<script>
    console.log(subnetOverlap(['172.22.2.0/24'], '172.22.2.0/24')) // true
</script> 

subnetOverlap

subnetOverlap(subnets, subnet)

  • subnets: (Array) List of existing subnets
  • subnet: (String) Subnet to check for overlap

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
1.0.0324latest

Version History

VersionDownloads (Last 7 Days)Published
1.0.0324

Package Sidebar

Install

npm i subnet-overlap

Weekly Downloads

288

Version

1.0.0

License

MIT

Unpacked Size

4.09 kB

Total Files

5

Last publish

Collaborators

  • sanghaklee