Skip to content

Ipv6Base

const Ipv6Base: BoundIntervalType<bigint>;

Defined in: interval-ip.ts:106

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

import { Ipv6Interval } from "@xtandard/lib/ip";
const r: Ipv6Interval = Ipv6Interval.cidr("2001:db8::/120");
r.length(); // 256