0.1.1 • Published 1 year ago

ip-simple-tool v0.1.1

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

Ip simple tool Generic badge

Ipv4 scope finder, netmask to prefix converter, and ipv4 and netmask validations

Installation

  • Install the module with your package manager
	npm i ip-simple-tool

Usage

import { ipv4Network } from 'ip-simple-tool';

const network = { 
	address: '10.20.30.40', 
	netmask: '255.255.255.0' 
}

//Make a handler first
const myNetwork = ipv4Network(network)

//Get the network scope
myNetwork.getScope()
/*  OUTPUT
{
	network: string,
	boradcast: string,
	hosts: number,
	prefix: number,
	utilHosts: number
}*/

License

MIT License

0.1.1

1 year ago

0.1.0

1 year ago