network-calculator

2.0.1 • Public • Published

Network Calculator Build Status

NPM

Network Calculator helps you get information about an IP address

Install

NPM

$ npm install --save network-calculator

Usage

var nc = require('network-calculator');
console.log(nc('192.168.1.4', '255.255.255.128'));
// >
// {
//   network: '192.168.1.0',
//   bitmask: 25,
//   firsthost: '192.168.1.1',
//   broadcast: '192.168.1.127',
//   lasthost: '192.168.1.126',
//   totalhost: 126
// }
 

CLI

$ npm install -g network-calculator
$ nc --help

Usage
nc <ip> <netmask>

Example
nc 192.168.1.4 255.255.255.128

License

MIT © Mert Kahyaoğlu

Dependents (3)

Package Sidebar

Install

npm i network-calculator

Weekly Downloads

27

Version

2.0.1

License

MIT

Last publish

Collaborators

  • mertkahyaoglu