ReadonlyfamilyThe address family identifier for IPv6 addresses.
Static ReadonlyBITSThe number of bits in an IPv6 address.
Static ReadonlyLOCALHOSTThe loopback address (::1).
Static ReadonlyUNSPECIFIEDThe unspecified address (::).
Checks whether this address is in the benchmarking range.
true when the address is in 2001:2::/48, otherwise false.
Checks whether this address is in a documentation-only range.
true for 2001:db8::/32 or 3fff::/20, otherwise false.
Checks whether this address appears globally reachable.
true when the address is not in known non-global special ranges.
Checks whether this address is the loopback address.
true when the address is ::1, otherwise false.
Checks whether this address is a multicast address.
true when the address is in ff00::/8, otherwise false.
Checks whether this address is a unicast address.
true when the address is not multicast, otherwise false.
Checks whether this address is a global unicast address.
true when the address is unicast and not loopback, link-local, private, unspecified, or documentation.
Checks whether this address is a link-local unicast address.
true when the address is in fe80::/10, otherwise false.
Checks whether this address is in the unique-local range.
true when the address is in fc00::/7, otherwise false.
Checks whether this address is the unspecified address.
true when the address is ::, otherwise false.
Encodes this address to a 16-byte buffer.
OptionallittleEndian: booleanWhether to use little-endian byte order. Defaults to false.
An ArrayBuffer containing the IPv6 integer value.
Converts this address to IPv4 when compatible or mapped.
An IPv4 address for ::a.b.c.d or ::ffff:a.b.c.d; otherwise None.
Converts this address to IPv4 only when it is IPv4-mapped.
An IPv4 address for ::ffff:a.b.c.d; otherwise None.
StaticfromStaticfromCreates an IPv6 address from a 16-byte buffer.
OptionallittleEndian: booleanA successful result with an IPv6 address, or an error when the buffer cannot be read.
Represents an IPv6 address.
Example
Since
v0.0.1