Skip to content

Ipv4Base

const Ipv4Base: BoundIntervalType<bigint>;

Defined in: interval-ip.ts:92

The IPv4 interval class without the .ip()/.cidr() helpers. Internal: it is not exported and shows up in the API only as the instance type behind Ipv4Interval. Use Ipv4Interval, which is this same class plus the helpers.

import { Ipv4Interval } from "@xtandard/lib/ip";
const r: Ipv4Interval = Ipv4Interval.parse("[10.0.0.0,10.0.0.255]");
r.length(); // 256