MCPcopy Create free account

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

Functions148 in github.com/beaugunderson/ip-address

↓ 10 callersMethodcorrectForm
* Returns the address in correct form, per * [RFC 5952](https://datatracker.ietf.org/doc/html/rfc5952): leading zeros * stripped, the longest ru
src/ipv6.ts:665
↓ 10 callersMethodfromBigInt
* Convert a BigInt to a v6 address object. The value must be in the * range `[0, 2**128 - 1]`; otherwise `AddressError` is thrown. * @param {big
src/ipv6.ts:188
↓ 8 callersMethodembeddedIPv4
* If this address embeds a routable IPv4 address — i.e. it is IPv4-mapped * (`::ffff:0:0/96`) or sits in the NAT64 well-known prefix (`64:ff9b::/96
src/ipv6.ts:1317
↓ 7 callersMethodbigInt
* Return the address as a BigInt * @returns {bigint}
src/ipv6.ts:894
↓ 7 callersMethodfromHex
* Converts a hex string to an IPv4 address object. Accepts 8 hex digits * with optional `:` separators (e.g. `'7f000001'` or `'7f:00:00:01'`). *
src/ipv4.ts:180
↓ 6 callersMethodfromBigInt
* Converts a BigInt to a v4 address object. The value must be in the * range `[0, 2**32 - 1]`; otherwise `AddressError` is thrown. * @param {big
src/ipv4.ts:366
↓ 5 callersMethodbinaryZeroPad
* Return a zero-padded base-2 string representation of the address * @returns {String} * @example * var address = new Address6('2001:4860:400
src/ipv6.ts:727
↓ 5 callersMethodcanonicalForm
* Returns the canonical (fully expanded) form of the address: all 8 groups, * each padded to 4 hex digits, with no `::` collapsing * (e.g. `2001
src/ipv6.ts:878
↓ 5 callersMethodcorrectForm
* Returns the address in correct form: octets joined with `.` and any * leading zeros stripped (e.g. `192.168.1.1`). For IPv4 this matches the *
src/ipv4.ts:91
↓ 5 callersMethodgetBitsBase2
* Return the bits in the given range as a base-2 string * @returns {String}
src/ipv6.ts:596
↓ 5 callersMethodgetType
* Return the type of the address * @returns {String}
src/ipv6.ts:573
↓ 4 callersMethodfromByteArray
* Convert a byte array to an Address6 object. * * Accepts unsigned bytes (0 to 255) or signed bytes (-128 to 127, as an * `Int8Array` or a Ja
src/ipv6.ts:1178
↓ 4 callersMethodfromUnsignedByteArray
* Convert an unsigned byte array to an Address6 object. * * Throws `AddressError` unless given exactly 16 integers from 0 to 255. * * To c
src/ipv6.ts:1195
↓ 4 callersMethodgetBitsBase16
* Return the bits in the given range as a base-16 string * @returns {String}
src/ipv6.ts:604
↓ 4 callersMethodis4
* Returns true if the address was written in v4-in-v6 dotted-quad notation * (e.g. `::ffff:127.0.0.1`), false otherwise. This is a notation-level f
src/ipv6.ts:1284
↓ 4 callersMethodstartAddress
* The first address in the range given by this address' subnet * Often referred to as the Network Address. * @returns {Address6}
src/ipv6.ts:463
↓ 3 callersMethodbigInt
* Returns the address as a `bigint` * @returns {bigint}
src/ipv4.ts:269
↓ 3 callersMethodendAddress
* The last address in the range given by this address' subnet * Often referred to as the Broadcast * @returns {Address6}
src/ipv6.ts:490
↓ 3 callersFunctionescapeHtml
(s: string)
src/v6/helpers.ts:1
↓ 3 callersMethodgetBits
* Return the bits in the given range as a BigInt * @returns {bigint}
src/ipv6.ts:588
↓ 3 callersMethodisBroadcast
* Returns true if the address is an IPv4-mapped / NAT64 address whose embedded * IPv4 address is the limited broadcast address `255.255.255.255`
src/ipv6.ts:1406
↓ 3 callersMethodisCGNAT
* Returns true if the address is an IPv4-mapped / NAT64 address whose embedded * IPv4 address is in the carrier-grade NAT range `100.64.0.0/10`
src/ipv6.ts:1389
↓ 3 callersMethodisLinkLocal
* Returns true if the address is a link local address, false otherwise * @returns {boolean}
src/ipv6.ts:1246
↓ 3 callersMethodisLoopback
* Returns true if the address is a loopback address, false otherwise * @returns {boolean}
src/ipv6.ts:1345
↓ 3 callersMethodisMulticast
* Returns true if the address is a multicast address, false otherwise * @returns {boolean}
src/ipv6.ts:1267
↓ 3 callersMethodisPrivate
* Returns true if the address is private, i.e. a Unique Local Address in * `fc00::/7` ([RFC 4193](https://datatracker.ietf.org/doc/html/rfc4193)) o
src/ipv6.ts:1372
↓ 3 callersMethodisUnspecified
* Returns true if the address is the unspecified address `::`. * @returns {boolean}
src/ipv6.ts:1419
↓ 3 callersMethodisValid
* Returns true if the given string is a valid IPv6 address (with optional * CIDR subnet and zone identifier), false otherwise. Host bits in the
src/ipv6.ts:167
↓ 3 callersMethodmask
* Return the first n bits of the address, defaulting to the subnet mask * @param {number} [mask=subnet] - the number of bits to mask * @returns
src/ipv6.ts:428
↓ 3 callersFunctionrenderType
(type: TypeDoc.SomeType | undefined)
scripts/build-readme.ts:28
↓ 3 callersFunctionsummaryFor
(reflection: TypeDoc.Reflection)
scripts/build-readme.ts:18
↓ 3 callersMethodto4
* Return the last two groups of this address as an IPv4 address string. * If this address carries a CIDR prefix that covers the trailing 32 bits
src/ipv6.ts:909
↓ 3 callersMethodtoByteArray
* Return a byte array. * * To get a Node.js `Buffer`, wrap the result: `Buffer.from(address.toByteArray())`. * @returns {Array}
src/ipv6.ts:1141
↓ 2 callersMethod_endAddress
* Helper function getting end address. * @returns {bigint}
src/ipv6.ts:481
↓ 2 callersMethod_endAddress
* Helper function getting end address. * @returns {bigint}
src/ipv4.ts:304
↓ 2 callersMethod_startAddress
* Helper function getting start address. * @returns {bigint}
src/ipv6.ts:454
↓ 2 callersMethod_startAddress
* Helper function getting start address. * @returns {bigint}
src/ipv4.ts:277
↓ 2 callersFunctionassert
(condition: any)
src/ipv6.ts:19
↓ 2 callersMethodbinaryZeroPad
* Returns a zero-padded base-2 string representation of the address * @returns {string}
src/ipv4.ts:527
↓ 2 callersMethodendAddressExclusive
* The last host address in the range given by this address's subnet ie * the last address prior to the Broadcast Address * @returns {Address6}
src/ipv6.ts:499
↓ 2 callersFunctionescapeHtml
(text: string)
scripts/build-readme.ts:98
↓ 2 callersMethodfromAddress4
* Create an IPv6-mapped address given an IPv4 address * @param {string} address - An IPv4 address string * @returns {Address6} * @example
src/ipv6.ts:377
↓ 2 callersMethodfromAddressAndMask
* Construct an `Address6` from an address and a hex subnet mask given as * separate strings (e.g. as returned by Node's `os.networkInterfaces()`).
src/ipv6.ts:280
↓ 2 callersMethodfromAddressAndWildcardMask
* Construct an `Address6` from an address and a Cisco-style wildcard mask * given as separate strings (e.g. `::ffff:ffff:ffff:ffff` for a `/64`).
src/ipv6.ts:294
↓ 2 callersMethodfromArpa
* Return an address from ip6.arpa form * @param {string} arpaFormAddress - an 'ip6.arpa' form address * @returns {Adress6} * @example * va
src/ipv6.ts:393
↓ 2 callersMethodfromInteger
* Converts an integer into a IPv4 address object. The integer must be a * non-negative safe integer in the range `[0, 2**32 - 1]`; otherwise * `
src/ipv4.ts:203
↓ 2 callersMethodfromURL
* Parse a URL (with optional bracketed host and port) into an address and * port. Returns either `{ address, port }` on success or * `{ error, a
src/ipv6.ts:213
↓ 2 callersMethodfromWildcard
* Construct an `Address6` from a wildcard pattern with trailing `*` * groups. The number of trailing wildcards determines the prefix * length: e
src/ipv6.ts:316
↓ 2 callersMethodgroupForV6
* Groups an IPv4 address for inclusion at the end of an IPv6 address. * * Returns an HTML fragment: each half of the address is wrapped in a
src/ipv4.ts:543
↓ 2 callersFunctiongroupPossibilities
(possibilities: string[])
src/v6/regular-expressions.ts:3
↓ 2 callersMethodisCanonical
* Returns true if the address is in the canonical form, false otherwise * @returns {boolean}
src/ipv6.ts:1238
↓ 2 callersMethodisMapped4
* Returns true if the address is an IPv4-mapped IPv6 address in * `::ffff:0:0/96` ([RFC 4291 §2.5.5.2](https://datatracker.ietf.org/doc/html/rfc429
src/ipv6.ts:1296
↓ 2 callersMethodisULA
* Returns true if the address is a Unique Local Address in `fc00::/7` ([RFC 4193](https://datatracker.ietf.org/doc/html/rfc4193)). ULAs are the IPv6 e
src/ipv6.ts:1358
↓ 2 callersMethodmask
* Returns the first n bits of the address, defaulting to the * subnet mask * @returns {String}
src/ipv4.ts:414
↓ 2 callersMethodnetworkForm
* The network address in CIDR string form, e.g. `2001:db8::/32` for * `2001:db8::1/32`. For an address with no explicit subnet the prefix * is `
src/ipv6.ts:534
↓ 2 callersMethodregularExpressionString
* Generate a regular expression string that can be used to find or validate * all variations of this address * @param {boolean} substringSearch
src/ipv6.ts:1558
↓ 2 callersFunctionrenderParams
(sig: TypeDoc.SignatureReflection)
scripts/build-readme.ts:32
↓ 2 callersFunctionrenderSignature
(name: string, sig: TypeDoc.SignatureReflection)
scripts/build-readme.ts:47
↓ 2 callersMethodreverseForm
* Return the reversed ip6.arpa form of the address * @param {Object} options * @param {boolean} options.omitSuffix - omit the "ip6.arpa" suffix
src/ipv6.ts:630
↓ 2 callersFunctionsourceLink
(sources: SourceRef[] | undefined)
scripts/build-readme.ts:61
↓ 2 callersFunctionspanLeadingZeroesSimple
(group: string)
src/v6/helpers.ts:31
↓ 2 callersMethodstartAddressExclusive
* The first host address in the range given by this address's subnet ie * the first address after the Network Address * @returns {Address6}
src/ipv6.ts:472
↓ 2 callersMethodsubnetMaskAddress
* The hex form of the subnet mask, e.g. `ffff:ffff:ffff:ffff::` for a * `/64`. Returns an `Address6`; call `.correctForm()` for the string. * @r
src/ipv6.ts:509
↓ 2 callersFunctiontestBit
(binaryValue: string, position: number)
src/common.ts:116
↓ 2 callersMethodto4in6
* Return the v4-in-v6 form of the address * @returns {String}
src/ipv6.ts:933
↓ 2 callersMethodtoHex
* Converts an IPv4 address object to a hex string * @returns {String}
src/ipv4.ts:232
↓ 2 callersMethodtoUnsignedByteArray
* Return an unsigned byte array. * * To get a Node.js `Buffer`, wrap the result: `Buffer.from(address.toUnsignedByteArray())`. * @returns {Ar
src/ipv6.ts:1160
↓ 2 callersMethodwildcardMask
* The Cisco-style wildcard mask, e.g. `::ffff:ffff:ffff:ffff` for a * `/64`. This is the bitwise inverse of `subnetMaskAddress()`. Returns * an
src/ipv6.ts:521
↓ 1 callersFunctionaddCommas
(number: string)
src/ipv6.ts:25
↓ 1 callersFunctionaddressIs
(addressString: string, descriptors: string[])
test/address-test.ts:18
↓ 1 callersFunctioncompact
(address: string[], slice: number[])
src/ipv6.ts:45
↓ 1 callersMethoddecimal
* Return the decimal form of the address * @returns {String}
src/ipv6.ts:886
↓ 1 callersFunctionfirstSentence
(summary: string)
scripts/build-readme.ts:122
↓ 1 callersMethodfromAddress4Nat64
* Embed an IPv4 address into a NAT64 IPv6 address using the encoding * defined by [RFC 6052](https://datatracker.ietf.org/doc/html/rfc6052). * T
src/ipv6.ts:1063
↓ 1 callersMethodfromUnsignedByteArray
* Convert an unsigned byte array to an Address4 object. Throws * `AddressError` unless given exactly 4 bytes, and rejects values outside * 0 to
src/ipv4.ts:400
↓ 1 callersMethodgetBitsBase2
* Returns the bits in the given range as a base-2 string * @returns {string}
src/ipv4.ts:426
↓ 1 callersMethodgetBitsPastSubnet
* Return the bits that are set past the subnet mask length * @returns {String}
src/ipv6.ts:620
↓ 1 callersMethodgetScope
* Return the scope of the address. The 4-bit scope field * ([RFC 4291 §2.7](https://datatracker.ietf.org/doc/html/rfc4291#section-2.7)) * is onl
src/ipv6.ts:546
↓ 1 callersMethodgroup
* Groups an address. * * Returns an HTML fragment: each group is wrapped in a `<span>` carrying * the group classes an address-inspector UI h
src/ipv6.ts:1506
↓ 1 callersMethodhref
* Returns the address as an HTTP URL with the host bracketed, e.g. * `http://[2001:db8::1]/`. If `optionalPort` is provided it is appended, * e.
src/ipv6.ts:1443
↓ 1 callersMethodinspect6to4
* Decodes the 6to4 tunneling fields embedded in this address. Returns the * 6to4 prefix and the embedded IPv4 gateway address. Only meaningful for
src/ipv6.ts:1017
↓ 1 callersMethodinspectTeredo
* Decodes the Teredo tunneling fields embedded in this address. Returns the * Teredo prefix, server IPv4, client IPv4, raw flag bits, cone-NAT flag
src/ipv6.ts:954
↓ 1 callersMethodis6to4
* Returns true if the address is a 6to4 address, false otherwise * @returns {boolean}
src/ipv6.ts:1337
↓ 1 callersFunctionisBlocked
(host: string)
test/functionality-v6-test.ts:1445
↓ 1 callersMethodisDocumentation
* Returns true if the address is in the documentation prefix `2001:db8::/32` ([RFC 3849](https://datatracker.ietf.org/doc/html/rfc3849)). * @return
src/ipv6.ts:1432
↓ 1 callersMethodisTeredo
* Returns true if the address is a Teredo address, false otherwise * @returns {boolean}
src/ipv6.ts:1329
↓ 1 callersMethodlink
* Returns an HTML `<a>` element whose `href` encodes the address in a URL * hash fragment (default prefix `/#address=`). Useful for linking between
src/ipv6.ts:1461
↓ 1 callersFunctionloadJsonBatch
(addresses: AddressEntry[], classes: string[], noMerge?: boolean)
test/address-test.ts:189
↓ 1 callersFunctionmain
()
scripts/build-readme.ts:203
↓ 1 callersMethodmicrosoftTranscription
* Return the Microsoft UNC transcription of the address * @returns {String} the Microsoft UNC transcription of the address
src/ipv6.ts:419
↓ 1 callersFunctionnotationsToAddresseses
(notations: string[])
test/functionality-v6-test.ts:11
↓ 1 callersFunctionnotationsToAddresseses
(notations: string[])
test/functionality-v4-test.ts:9
↓ 1 callersFunctionnumberToPaddedHex
(number: number)
src/common.ts:104
↓ 1 callersFunctionpadGroup
(group: string)
src/v6/regular-expressions.ts:7
↓ 1 callersMethodparse
(address: string)
src/ipv6.ts:798
↓ 1 callersMethodparse
* 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 callersMethodparse4in6
(address: string)
src/ipv6.ts:741
↓ 1 callersFunctionpossibleElisions
( elidedGroups: number, moreLeft?: boolean, moreRight?: boolean, )
src/v6/regular-expressions.ts:50
↓ 1 callersMethodpossibleSubnets
(subnetSize: number = 128)
src/ipv6.ts:438
↓ 1 callersMethodregularExpression
* Generate a regular expression that can be used to find or validate all * variations of this address. * @param {boolean} substringSearch * @
src/ipv6.ts:1612
next →1–100 of 148, ranked by callers