net-address
v0.0.1
Published
Network address instances
Readme
net-address
Runtime agnostic core IpAddr classes base on Rust implementation.
Installation
npm i net-address @luolapeikko/result-optionExamples
const addrFromString = Ipv4Addr.from("192.168.0.1").unwrap();
const addr = new Ipv4Addr(192, 168, 0, 1);
if (addr.isPrivate()) {
//
}
if (addr.isGlobal()) {
//
}