UNPKG

ip-subnet

Version:

A library of IP Subnetting utility functions

15 lines (14 loc) 403 B
import { IP } from './ip'; export declare class CIDR { private _networkAddress; private _prefixLength; private _netMask; constructor(networkAddress: IP, prefixLength: number); toString(): string; private calculateOctetMask; private calculateNetMask; get netMask(): IP; get networkAddress(): IP; get prefixLength(): number; static parse(cidr: string): CIDR; }