ip-utilties
v3.7.1
Published
ip v4/v6 utility functions
Maintainers
Readme
ip-v4/v6 utility functions
- encoding / decoding
- well known subnets
Three different representations
const ip4AsString = "10.0.0.1";
const ip4AsArray = new Uint8Array([10,0,0,1]);
const ip4or6AsBigInt = 10n << 24n | 1n;
encodeIPv4("10.0.0.1") // -> 10n << 24n | 1n;API
install
With npm do:
npm install ip-utiltieslicense
BSD-2-Clause
