subnet-info
v1.0.1
Published
Takes an IPv4 CIDR network address and returns network size, broadcast address, subnet mask, start IP, end IP, and network address
Downloads
11
Readme
subnet-info
Installation
npm install subnet-info
Usage
var SubnetInfo = require('subnet-info');
var subnetinfo = new SubnetInfo('192.168.10.50/24');
Example
See the example code
IP address and subnet mask must be provided in CIDR Notation. Currently only supports IPv4 addresses.