Interface RangeObject

The structure of the internal private properties of an IP instance.

Represents the parsing result of the original IP string, forcibly interpreted as a CIDR address. "Forcible interpretation" means any address is treated as CIDR internally, even single IPs like 192.168.0.1 → 192.168.0.1/32.

interface RangeObject {
    bitLen: number;
    first: number[];
    isCidr: boolean;
    last: number[];
}

Properties

Properties

bitLen: number

CIDR bit length used for the range.

first: number[]

Array of decimals for the first IP in the range.

isCidr: boolean

false if the original address was not a CIDR.

last: number[]

Array of decimals for the last IP in the range.