ip-num
Version:
A TypeScript library for working with IPv4, IPv6 and ASN numbers. It provides representations of these internet protocol numbers with the ability to perform various IP related operations like parsing, validating etc. on them
19 lines (18 loc) • 769 B
TypeScript
/**
* Expands an IPv6 number in abbreviated format into its full form
*
* {@see https://en.wikipedia.org/wiki/IPv6_address#Representation} for more on the representation of IPv6 addresses
*
* @param {string} ipv6String the abbreviated IPv6 address to expand
* @returns {string} the expanded IPv6 address
*/
export declare let expandIPv6Number: (ipv6String: string) => string;
/**
* Collapses an IPv6 number in full format into its abbreviated form
*
* {@see https://en.wikipedia.org/wiki/IPv6_address#Representation} for more on the representation of IPv6 addresses
*
* @param {string} ipv6String the full form IPv6 number to collapse
* @returns {string} the collapsed IPv6 number
*/
export declare let collapseIPv6Number: (ipv6String: string) => string;