Split facility for CIDRs.
npm install cidr-split_Stability: 1 - Experimental_

Split facility for CIDRs.
* Installation
* Usage
* Tests
* Documentation
* CIDR
* Releases
npm install cidr-split
To run the below example, run:
npm run readme
``javascript
"use strict";
const CIDR = require("../index.js");
console.log("Split 10.0.0.0/16 into two and print out");
CIDR.fromString("10.0.0.0/16").split().map(cidr => console.log(cidr.toString()));
console.log("Split 10.0.0.0/16 into four and print out");
CIDR.fromString("10.0.0.0/16")
.split()
.map(cidr => cidr.split())
.reduce((all, halves) => all.concat(...halves))
.map(cidr => console.log(cidr.toString()));
`
No tests at this time.
* CIDR
Public API
* CIDR.fromString(cidr)
* cidr.split()
* cidr: _String_ String representation of a CIDR, ex: 10.0.0.0/16
* Return: _CIDR_ CIDR created from the string.
Parses cidr string and creates a CIDR object.
* Retrun: _Array_ Array of two CIDRs, each being one half of the cidr.
If possible, splits the cidr` into two CIDRs that are half the size.
We follow semantic versioning policy (see: semver.org):
> Given a version number MAJOR.MINOR.PATCH, increment the:
>
>MAJOR version when you make incompatible API changes,
>MINOR version when you add functionality in a backwards-compatible manner, and
>PATCH version when you make backwards-compatible bug fixes.
caveat: Major version zero is a special case indicating development version that may make incompatible API changes without incrementing MAJOR version.