Skip to content

Take an IPv4 CIDR address and return general network information such as size, broadcast address, subnet mask, etc.

License

Notifications You must be signed in to change notification settings

stvmlbrn/subnet-info

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

License

MIT License

About

Take an IPv4 CIDR address and return general network information such as size, broadcast address, subnet mask, etc.

Resources

License

Stars

Watchers

Forks

Packages

No packages published