@corvina/cidr
Version:
CIDR Operation helper
6 lines (5 loc) • 400 B
TypeScript
export declare function validateIpAddressForEndpoint(value: string): string;
export declare function convertNetworkAddressWithBitmaskToNetmask(value: string): string;
export declare function convertBitmaskToNetmask(bitCount: number): string;
export declare function convertNetmaskToBitmask(netmask: string): number;
export declare function anonymizeIp(ipAddress: string, maskLength: number): string;