Interface RangeObject

The structure of the internal private properties of an IP instance. (A copy of these properties can be retrieved using IP.getProperties.)

This object represents the parsing result of the original IP string, forcibly interpreted as a CIDR address. "Forcible interpretation" refers to the internal conversion of any IP address into CIDR form, e.g., 192.168.0.1192.168.0.1/32, stored as arrays of decimals along with a bit length. The isCidr property indicates whether the original input really was a CIDR.

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

Properties

Properties

bitLen: number

The bit length of the CIDR address.

first: number[]

An array of decimal numbers representing the first IP in the CIDR range.

isCidr: boolean

false if the original address was not a CIDR.

last: number[]

An array of decimal numbers representing the last IP in the CIDR range.