MCPcopy Create free account

hub / github.com/beaugunderson/ip-address / functions

Functions141 in github.com/beaugunderson/ip-address

↓ 1 callersFunctionspanAllZeroes
(s: string)
src/v6/helpers.ts:13
↓ 1 callersMethodstartAddress
* The first address in the range given by this address' subnet. * Often referred to as the Network Address. * @returns {Address4}
src/ipv4.ts:281
↓ 1 callersMethodto4in6
* Return the v4-in-v6 form of the address * @returns {String}
src/ipv6.ts:916
↓ 1 callersMethodto6to4
* Return a v6 6to4 address from a v6 v4inv6 address * @returns {Address6}
src/ipv6.ts:1022
↓ 1 callersMethodtoAddress4Nat64
* Extract the embedded IPv4 address from a NAT64 IPv6 address using the * encoding defined by [RFC 6052](https://datatracker.ietf.org/doc/html/rfc6
src/ipv6.ts:1089
↓ 1 callersMethodtoArray
* Converts an IPv4 address object to an array of bytes. * * To get a Node.js `Buffer`, wrap the result: `Buffer.from(address.toArray())`. * @
src/ipv4.ts:237
↓ 1 callersMethodtoGroup6
* Converts an IPv4 address object to an IPv6 address group * @returns {String}
src/ipv4.ts:245
↓ 1 callersMethodtoHex
* Converts an IPv4 address object to a hex string * @returns {String}
src/ipv4.ts:227
Methodconstructor
(message: string, parseMessage?: string)
src/address-error.ts:4
Methodconstructor
(address: string, optionalGroups?: number)
src/ipv6.ts:114
Methodconstructor
(address: string)
src/ipv4.ts:24
MethodendAddress
* The last address in the range given by this address' subnet * Often referred to as the Broadcast * @returns {Address4}
src/ipv4.ts:308
MethodendAddressExclusive
* The last host address in the range given by this address's subnet ie * the last address prior to the Broadcast Address * @returns {Address4}
src/ipv4.ts:317
MethodfromAddressAndMask
* Construct an `Address4` from an address and a dotted-decimal subnet * mask given as separate strings (e.g. as returned by Node's * `os.network
src/ipv4.ts:104
MethodfromAddressAndWildcardMask
* Construct an `Address4` from an address and a Cisco-style wildcard mask * given as separate strings (e.g. `0.0.0.255` for a `/24`). The wildcard
src/ipv4.ts:118
MethodfromArpa
* Return an address from in-addr.arpa form * @param {string} arpaFormAddress - an 'in-addr.arpa' form ipv4 address * @returns {Adress4} * @ex
src/ipv4.ts:214
MethodfromByteArray
* Convert a byte array to an Address4 object. * * To convert from a Node.js `Buffer`, spread it: `Address4.fromByteArray([...buf])`. * @param
src/ipv4.ts:376
MethodfromWildcard
* Construct an `Address4` from a wildcard pattern with trailing `*` * octets. The number of trailing wildcards determines the prefix * length: e
src/ipv4.ts:140
MethodisBroadcast
* Returns true if the address is the limited broadcast address `255.255.255.255` ([RFC 919](https://datatracker.ietf.org/doc/html/rfc919)). * @retu
src/ipv4.ts:504
MethodisCGNAT
* Returns true if the address is in the carrier-grade NAT range `100.64.0.0/10` ([RFC 6598](https://datatracker.ietf.org/doc/html/rfc6598)). * @ret
src/ipv4.ts:512
FunctionisCorrect
(defaultBits: number)
src/common.ts:43
FunctionisHostInSubnet
(this: Address4 | Address6, address: Address4 | Address6)
src/common.ts:39
FunctionisInSubnet
(this: Address4 | Address6, address: Address4 | Address6)
src/common.ts:19
MethodisLinkLocal
* Returns true if the address is in the link-local range `169.254.0.0/16` ([RFC 3927](https://datatracker.ietf.org/doc/html/rfc3927)). * @returns {
src/ipv4.ts:488
MethodisLoopback
* Returns true if the address is in the loopback range `127.0.0.0/8` ([RFC 1122](https://datatracker.ietf.org/doc/html/rfc1122)). * @returns {boole
src/ipv4.ts:480
MethodisMulticast
* Returns true if the given address is a multicast address * @returns {boolean}
src/ipv4.ts:464
MethodisPrivate
* Returns true if the address is in one of the [RFC 1918](https://datatracker.ietf.org/doc/html/rfc1918) private address ranges (`10.0.0.0/8`, `172.16
src/ipv4.ts:472
MethodisUnspecified
* Returns true if the address is the unspecified address `0.0.0.0`. * @returns {boolean}
src/ipv4.ts:496
MethodisValid
* Returns true if the given string is a valid IPv4 address (with optional * CIDR subnet), false otherwise. Host bits in the subnet portion are *
src/ipv4.ts:53
MethodnetworkForm
* The network address in CIDR string form, e.g. `192.168.1.0/24` for * `192.168.1.5/24`. For an address with no explicit subnet the prefix is *
src/ipv4.ts:351
FunctionpaddedHex
(octet: string)
src/ipv6.ts:61
FunctionprefixLengthFromMask
(value: bigint, totalBits: number)
src/common.ts:62
FunctionsimpleGroup
(addressString: string, offset: number = 0)
src/v6/helpers.ts:48
FunctionspanAll
(s: string, offset: number = 0)
src/v6/helpers.ts:20
FunctionspanLeadingZeroes
(address: string)
src/v6/helpers.ts:38
FunctionspanLeadingZeroes4
(n: string)
src/ipv6.ts:35
MethodstartAddressExclusive
* The first host address in the range given by this address's subnet ie * the first address after the Network Address * @returns {Address4}
src/ipv4.ts:290
FunctionstringToPaddedHex
(numberString: string)
src/common.ts:86
MethodsubnetMaskAddress
* The dotted-decimal form of the subnet mask, e.g. `255.255.240.0` for * a `/20`. Returns an `Address4`; call `.correctForm()` for the string. *
src/ipv4.ts:327
FunctionunsignByte
(b: number)
src/ipv6.ts:65
MethodwildcardMask
* The Cisco-style wildcard mask, e.g. `0.0.0.255` for a `/24`. This is * the bitwise inverse of `subnetMaskAddress()`. Returns an `Address4`; *
src/ipv4.ts:339
← previous101–141 of 141, ranked by callers