UNPKG

@aikidosec/firewall

Version:

Zen by Aikido is an embedded Web Application Firewall that autonomously protects Node.js apps against common and critical attacks

18 lines (17 loc) 495 B
export declare class Address { private arr; constructor(address?: string); bytes(): number[]; setBytes(bytes: number[]): this; destroy(): this; isValid(): boolean; isIPv4(): boolean; isIPv6(): boolean; duplicate(): Address; equals(address: Address): boolean; compare(address: Address): 0 | 1 | -1 | null; applySubnetMask(cidr: number): this; isBaseAddress(cidr: number): boolean; increase(cidr: number): this; private offsetAddress; }