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