Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/beaugunderson/ip-address
/ functions
Functions
169 in github.com/beaugunderson/ip-address
⨍
Functions
169
◇
Types & classes
12
↓ 1 callers
Function
main
()
scripts/build-readme.ts:203
↓ 1 callers
Function
main
()
scripts/gen-iana-corpus.py:140
↓ 1 callers
Method
microsoftTranscription
* Return the Microsoft UNC transcription of the address * @returns {String} the Microsoft UNC transcription of the address
src/ipv6.ts:419
↓ 1 callers
Function
notationsToAddresseses
(notations: string[])
test/functionality-v6-test.ts:11
↓ 1 callers
Function
notationsToAddresseses
(notations: string[])
test/functionality-v4-test.ts:9
↓ 1 callers
Function
numberToPaddedHex
(number: number)
src/common.ts:140
↓ 1 callers
Function
padGroup
(group: string)
src/v6/regular-expressions.ts:7
↓ 1 callers
Function
parse
(probe: Probe)
test/iana-corpus-test.ts:45
↓ 1 callers
Method
parse
(address: string)
src/ipv6.ts:798
↓ 1 callers
Method
parse
* Parses an IPv4 address string into its four octet groups and stores the * result on `this.parsedAddress`. Called automatically by the constructor
src/ipv4.ts:70
↓ 1 callers
Method
parse4in6
(address: string)
src/ipv6.ts:741
↓ 1 callers
Function
possibleElisions
( elidedGroups: number, moreLeft?: boolean, moreRight?: boolean, )
src/v6/regular-expressions.ts:50
↓ 1 callers
Method
possibleSubnets
(subnetSize: number = 128)
src/ipv6.ts:438
↓ 1 callers
Function
probes
(net)
scripts/gen-iana-corpus.py:77
↓ 1 callers
Function
pythonComparable
(probe: Probe, address: Address4 | Address6)
test/iana-corpus-test.ts:55
↓ 1 callers
Function
reachability
Map the registry's 'Globally Reachable' column to True, False, or None. N/A (Teredo, 6to4) is not reachable without a relay; a blank cell inherit
scripts/gen-iana-corpus.py:43
↓ 1 callers
Function
registry_answer
The most specific block containing the address, and whether the registry marks the address globally reachable (True when no block contains it).
scripts/gen-iana-corpus.py:66
↓ 1 callers
Method
regularExpression
* Generate a regular expression that can be used to find or validate all * variations of this address. * @param {boolean} substringSearch * @
src/ipv6.ts:1663
↓ 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:1744
Function
assertByteArray
( bytes: number[], byteCount: number, family: 'IPv4' | 'IPv6', minimum: number, )
src/common.ts:123
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
isBenchmarking
* Returns true if the address is in the benchmarking range `198.18.0.0/15` ([RFC 2544](https://datatracker.ietf.org/doc/html/rfc2544)). * @returns
src/ipv4.ts:536
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:79
Method
isDocumentation
* Returns true if the address is in one of the documentation ranges * `192.0.2.0/24`, `198.51.100.0/24`, or `203.0.113.0/24` ([RFC 5737](https://da
src/ipv4.ts:528
Method
isGlobal
* Returns true if the address is globally reachable: not multicast, and not * in any block the [IANA IPv4 Special-Purpose Address Registry](https:/
src/ipv4.ts:560
Function
isGloballyReachable
( this: A, entries: ReadonlyArray<SpecialPurposeEntry<A>>, )
src/common.ts:58
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
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:98
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:144
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–169 of 169, ranked by callers