Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/beaugunderson/ip-address
/ functions
Functions
148 in github.com/beaugunderson/ip-address
⨍
Functions
148
◇
Types & classes
10
↓ 1 callers
Function
renderClass
(cls: TypeDoc.DeclarationReflection)
scripts/build-readme.ts:127
↓ 1 callers
Function
renderMethod
(method: TypeDoc.DeclarationReflection)
scripts/build-readme.ts:68
↓ 1 callers
Function
renderProperty
(prop: TypeDoc.DeclarationReflection)
scripts/build-readme.ts:85
↓ 1 callers
Function
renderPropertyType
* Properties holding a function (the prototype-assigned `isInSubnet` and * friends) render through the same parameter rules as methods, so a `this`
scripts/build-readme.ts:56
↓ 1 callers
Function
renderSummaryLine
* The one-line blurb shown next to the class name on the collapsed row. The * summary is markdown, but a `<summary>` element renders HTML rather than
scripts/build-readme.ts:111
↓ 1 callers
Method
reverseForm
* Return the reversed in-addr.arpa form of the address, e.g. * `42.2.0.192.in-addr.arpa.` for `192.0.2.42`. * @param {Object} options * @para
src/ipv4.ts:437
↓ 1 callers
Function
simpleRegularExpression
(groups: string[])
src/v6/regular-expressions.ts:17
↓ 1 callers
Function
spanAllZeroes
(s: string)
src/v6/helpers.ts:13
↓ 1 callers
Method
startAddress
* The first address in the range given by this address' subnet. * Often referred to as the Network Address. * @returns {Address4}
src/ipv4.ts:286
↓ 1 callers
Method
to6to4
* Return a v6 6to4 address from a v6 v4inv6 address * @returns {Address6}
src/ipv6.ts:1037
↓ 1 callers
Method
toAddress4Nat64
* 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:1106
↓ 1 callers
Method
toArray
* 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:242
↓ 1 callers
Method
toGroup6
* Converts an IPv4 address object to an IPv6 address group * @returns {String}
src/ipv4.ts:250
↓ 1 callers
Function
zeros
(count: number)
test/functionality-v6-test.ts:1601
Function
assertByteArray
( bytes: number[], byteCount: number, family: 'IPv4' | 'IPv6', minimum: number, )
src/common.ts:87
Method
constructor
(message: string, parseMessage?: string)
src/address-error.ts:15
Method
constructor
(address: string, optionalGroups?: number)
src/ipv6.ts:113
Method
constructor
(address: string)
src/ipv4.ts:24
Method
endAddress
* The last address in the range given by this address' subnet * Often referred to as the Broadcast * @returns {Address4}
src/ipv4.ts:313
Method
endAddressExclusive
* 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:322
Method
fromAddressAndMask
* 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:110
Method
fromAddressAndWildcardMask
* 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:124
Method
fromArpa
* Return an address from in-addr.arpa form * @param {string} arpaFormAddress - an 'in-addr.arpa' form ipv4 address * @returns {Adress4} * @ex
src/ipv4.ts:219
Method
fromByteArray
* Convert a byte array to an Address4 object. Throws `AddressError` unless * given exactly 4 integers from 0 to 255. Signed bytes are rejected, so
src/ipv4.ts:384
Method
fromWildcard
* Construct an `Address4` from a wildcard pattern with trailing `*` * octets. The number of trailing wildcards determines the prefix * length: e
src/ipv4.ts:145
Method
isBroadcast
* 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:511
Method
isCGNAT
* 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:519
Function
isCorrect
(defaultBits: number)
src/common.ts:43
Function
isHostInSubnet
(this: Address4 | Address6, address: Address4 | Address6)
src/common.ts:39
Function
isInSubnet
(this: Address4 | Address6, address: Address4 | Address6)
src/common.ts:19
Method
isLinkLocal
* 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:495
Method
isLoopback
* 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:487
Method
isMulticast
* Returns true if the given address is a multicast address * @returns {boolean}
src/ipv4.ts:471
Method
isPrivate
* 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:479
Method
isUnspecified
* Returns true if the address is the unspecified address `0.0.0.0`. * @returns {boolean}
src/ipv4.ts:503
Method
isValid
* 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
Method
networkForm
* 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:356
Function
paddedHex
(octet: string)
src/ipv6.ts:61
Function
prefixLengthFromMask
(value: bigint, totalBits: number)
src/common.ts:62
Function
simpleGroup
(addressString: string, offset: number = 0)
src/v6/helpers.ts:48
Function
spanAll
(s: string, offset: number = 0)
src/v6/helpers.ts:20
Function
spanLeadingZeroes
(address: string)
src/v6/helpers.ts:38
Function
spanLeadingZeroes4
(n: string)
src/ipv6.ts:35
Method
startAddressExclusive
* 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:295
Function
stringToPaddedHex
(numberString: string)
src/common.ts:108
Method
subnetMaskAddress
* 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:332
Function
unsignByte
(b: number)
src/ipv6.ts:65
Method
wildcardMask
* 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:344
← previous
101–148 of 148, ranked by callers