UNPKG

ip-subnet

Version:

A library of IP Subnetting utility functions

12 lines (11 loc) 305 B
import { IP } from './ip'; export declare class Subnet { private _networkAddress; private _netMask; constructor(networkAddress: IP, netMask: IP); prefixLength(): number; size(): number; get networkAddress(): IP; get netMask(): IP; static parseCIDR(cidr: string): Subnet; }