MCPcopy Create free account

hub / github.com/denoland/std / functions

Functions2,890 in github.com/denoland/std

↓ 2 callersFunctionisRedirectStatus
(status: number)
http/status.ts:390
↓ 2 callersFunctionisSemVer
(value: unknown)
semver/is_semver.ts:38
↓ 2 callersFunctionisSupportedAlgorithm
(value: string)
http/unstable_message_signatures.ts:286
↓ 2 callersFunctionisTchar
RFC 9110 tchar: token characters
http/unstable_structured_fields.ts:516
↓ 2 callersFunctionisToken
(s: string)
media_types/_util.ts:112
↓ 2 callersFunctionisUnicodeNameStartChar
* Check if a Unicode code point (>= 0x100) is a valid NameStartChar. * Ranges ordered by frequency in real-world XML (CJK is common). * * XML 1.0 F
xml/_name_chars.ts:65
↓ 2 callersFunctionisYearNumberALeapYear
(yearNumber: number)
datetime/is_leap.ts:4
↓ 2 callersFunctionitDefinition
Generates an ItDefinition from ItArgs.
testing/bdd.ts:505
↓ 2 callersFunctionlessOrEqual
(version1: SemVer, version2: SemVer)
semver/less_or_equal.ts:28
↓ 2 callersFunctionlevenshteinDistance
(str1: string, str2: string)
text/levenshtein_distance.ts:121
↓ 2 callersFunctionlink
(oldpath: string, newpath: string)
fs/unstable_link.ts:22
↓ 2 callersFunctionlinkSync
(oldpath: string, newpath: string)
fs/unstable_link.ts:50
↓ 2 callersFunctionload
( options: LoadOptions = {}, )
dotenv/mod.ts:269
↓ 2 callersFunctionloadSync
( options: LoadOptions = {}, )
dotenv/mod.ts:115
↓ 2 callersFunctionlogError
(error: Error)
http/file_server.ts:799
↓ 2 callersFunctionlongestCommonPrefix
(strs: ArrayLike<string>)
text/unstable_longest_common_prefix.ts:20
↓ 2 callersMethodlrnValues
* Create an iterator over this tree that traverses the tree in post-order (LRN, * Left-Right-Node). * * @example Using the post-order LRN ite
data_structures/binary_search_tree.ts:690
↓ 2 callersFunctionlstat
(path: string | URL)
fs/unstable_lstat.ts:26
↓ 2 callersMethodlvlValues
* Create an iterator over this tree that traverses the tree in level-order (BFS, * Breadth-First Search). * * @example Using the level-order
data_structures/binary_search_tree.ts:726
↓ 2 callersFunctionmapKeys
( record: Readonly<Record<string, T>>, transformer: (key: string) => string, )
collections/map_keys.ts:35
↓ 2 callersFunctionmapNotNullish
( array: Iterable<T>, transformer: (el: T, index: number) => O, )
collections/map_not_nullish.ts:46
↓ 2 callersFunctionmatchIPv4Subnet
(addr: string, subnet: string)
net/unstable_ip.ts:182
↓ 2 callersFunctionmatchIPv6Subnet
(addr: string, subnet: string)
net/unstable_ip.ts:247
↓ 2 callersFunctionmaxBy
( array: Iterable<T>, selector: | ((el: T, index: number) => number) | ((el: T, index: number) =>
collections/max_by.ts:147
↓ 2 callersFunctionmaxOf
( array: Iterable<T>, selector: S, )
collections/max_of.ts:83
↓ 2 callersFunctionmaxWith
( array: Iterable<T>, comparator: (a: T, b: T) => number, )
collections/max_with.ts:31
↓ 2 callersFunctionmethodMatches
( routeMethod: string | string[] | undefined, requestMethod: string, )
http/unstable_route.ts:53
↓ 2 callersFunctionminBy
( array: Iterable<T>, selector: | ((el: T, index: number) => number) | ((el: T, index: number) =>
collections/min_by.ts:145
↓ 2 callersFunctionminOf
( array: Iterable<T>, selector: S, )
collections/min_of.ts:83
↓ 2 callersFunctionminWith
( array: Iterable<T>, comparator: (a: T, b: T) => number, )
collections/min_with.ts:27
↓ 2 callersFunctionmonotonicFactory
(encodeRand = encodeRandom)
ulid/_util.ts:65
↓ 2 callersFunctionneedIndentIndicator
(string: string)
yaml/_dumper_state.ts:172
↓ 2 callersFunctionnextPowerOfTwo
Round up to the smallest power of two >= n (at least {@linkcode MIN_CAPACITY}).
data_structures/deque.ts:31
↓ 2 callersMethodnlrValues
* Create an iterator over this tree that traverses the tree in pre-order (NLR, * Node-Left-Right). * * @example Using the pre-order NLR itera
data_structures/binary_search_tree.ts:663
↓ 2 callersFunctionnormalize
(path: string | URL)
path/windows/normalize.ts:27
↓ 2 callersFunctionnormalize
(path: string | URL)
path/posix/normalize.ts:44
↓ 2 callersFunctionnormalizeAlgorithm
(algorithm: DigestAlgorithm)
crypto/crypto.ts:328
↓ 2 callersFunctionnormalizeAttributeValue
* Normalizes attribute value per XML 1.0 §3.3.3. * * Only predefined entities are expanded (lt, gt, amp, apos, quot). * Custom entities from DTD ar
xml/_parser.ts:38
↓ 2 callersFunctionnormalizeParsedProblemDetails
( raw: unknown, )
http/unstable_problem_details.ts:249
↓ 2 callersMethodonCData
( content: string, line: number, column: number, offset: number, )
xml/_parser.ts:578
↓ 2 callersMethodonComment
( content: string, line: number, column: number, offset: number, )
xml/_parser.ts:605
↓ 2 callersMethodonEndElement
* Called when an element ends. * @param colonIndex Index of ':' in name, or -1 if no prefix. * @param uri The resolved namespace URI if the elem
xml/types.ts:441
↓ 2 callersMethodonProcessingInstruction
( target: string, content: string, line: number, column: number, offset: number, )
xml/_parser.ts:615
↓ 2 callersMethodonText
( content: string, line: number, column: number, offset: number, )
xml/_parser.ts:533
↓ 2 callersMethodonly
Registers an individual test case with only set to true.
testing/bdd.ts:571
↓ 2 callersFunctionor
( parsers: T, )
toml/_parser.ts:250
↓ 2 callersFunctionoverrideGlobals
()
testing/time.ts:209
↓ 2 callersFunctionownKeys
(obj: object)
assert/equal.ts:24
↓ 2 callersFunctionparamsEqual
( a: ReadonlyMap<string, BareItem>, b: ReadonlyMap<string, BareItem>, )
http/unstable_structured_fields_test.ts:846
↓ 2 callersFunctionparse
( content: string, options: ParseOptions = {}, )
yaml/parse.ts:74
↓ 2 callersFunctionparseArgs
( args: readonly string[], options?: ParseOptions< TBooleans, TStrings, TCollectable, TNeg
cli/parse_args.ts:607
↓ 2 callersFunctionparseBareItem
(state: ParserState)
http/unstable_structured_fields.ts:762
↓ 2 callersFunctionparseIntegerOrDecimal
(state: ParserState)
http/unstable_structured_fields.ts:792
↓ 2 callersFunctionparseItemOrInnerList
(state: ParserState)
http/unstable_structured_fields.ts:717
↓ 2 callersFunctionparseKey
(state: ParserState)
http/unstable_structured_fields.ts:1097
↓ 2 callersFunctionparseLanguage
( str: string, i: number, )
http/_negotiation/language.ts:42
↓ 2 callersFunctionparseLine
* Parses a field line and updates the message accumulator. * Returns true if a field was added to the message.
http/server_sent_event_parse_stream.ts:43
↓ 2 callersFunctionparseMediaType
( str: string, i: number, )
http/_negotiation/media_type.ts:47
↓ 2 callersFunctionparseName
(name: string, uri?: string)
xml/_common.ts:549
↓ 2 callersFunctionparseName
Parses a qualified name string into an XmlName object.
xml/_parser_test.ts:32
↓ 2 callersFunctionparsePath
(size: number, buffer: Uint8Array_)
tar/tar_stream.ts:595
↓ 2 callersFunctionparseSnapshotArgs
* Parses an overloaded `(propertyMatchers?, stringArg?)` argument list. * Both `toMatchSnapshot` and `toMatchInlineSnapshot` accept an optional * pr
expect/_matchers.ts:1055
↓ 2 callersFunctionparseSync
(xml: string, options?: ParseOptions)
xml/_parse_sync.ts:88
↓ 2 callersFunctionparseXmlStream
( source: AsyncIterable<string>, callbacks: XmlEventCallbacks, options: ParseStreamOptions = {}, )
xml/parse_stream.ts:62
↓ 2 callersFunctionparserFactory
(parser: ParserComponent<T>)
toml/_parser.ts:846
↓ 2 callersFunctionpartitionEntries
( record: Readonly<Record<string, T>>, predicate: (entry: [string, T]) => boolean, )
collections/partition_entries.ts:41
↓ 2 callersMethodpartsToDate
(parts: DateTimeFormatPart[])
datetime/_date_time_formatter.ts:559
↓ 2 callersFunctionpassStringToWasm0
(arg, malloc, realloc)
crypto/_wasm/lib/deno_std_wasm_crypto.internal.mjs:61
↓ 2 callersMethodpeek
* Returns the value associated with the given key, or `undefined` if the * key is not present, **without** resetting its TTL. * * This is the
cache/ttl_cache.ts:262
↓ 2 callersMethodpeek
* Get the greatest value from the binary heap without removing it, or * undefined if the heap is empty. * * The complexity of this operation
data_structures/binary_heap.ts:264
↓ 2 callersMethodpeekFront
* Return the front element without removing it, or `undefined` if the deque * is empty. * * @example Peeking at the front * ```ts * imp
data_structures/deque.ts:434
↓ 2 callersFunctionpermutations
(inputArray: Iterable<T>)
collections/permutations.ts:29
↓ 2 callersFunctionpooledMapSettled
( array: Iterable<T> | AsyncIterable<T>, iteratorFn: (data: T) => R | Promise<R>, options: PooledMapSett
async/unstable_pool_settled.ts:87
↓ 2 callersMethodpop
* Remove and return the front entry (smallest priority), or `undefined` * if the heap is empty. The returned entry is removed from the heap so *
data_structures/unstable_indexed_heap.ts:600
↓ 2 callersFunctionposixMatch
(glob: string, path: string, options?: GlobOptions)
path/glob_to_regexp_test.ts:7
↓ 2 callersFunctionprng
()
random/between_test.ts:101
↓ 2 callersMethodpushToUpdateQueue
Tracks the order of snapshots for writing the file.
expect/_snapshot_state.ts:424
↓ 2 callersFunctionrandomBetween
( min: number, max: number, options?: RandomOptions, )
random/between.ts:27
↓ 2 callersFunctionrandomId
()
fs/_utils.ts:64
↓ 2 callersMethodread
* Read the file into an array buffer (`p`). * * Resolves to either the number of bytes read during the operation or EOF * (`null`) if there w
fs/unstable_types.ts:319
↓ 2 callersMethodreadFrom
* Reads data from `r` until EOF (`null`) and appends it to the buffer, * growing the buffer as needed. It resolves to the number of bytes read.
io/buffer.ts:428
↓ 2 callersMethodreadFromSync
Reads data from `r` until EOF (`null`) and appends it to the buffer, * growing the buffer as needed. It returns the number of bytes read. If the
io/buffer.ts:474
↓ 2 callersMethodreadIndent
()
yaml/_loader_state.ts:266
↓ 2 callersMethodreadLine
()
csv/_io.ts:55
↓ 2 callersFunctionreadName
()
xml/_parse_sync.ts:682
↓ 2 callersFunctionreaderFromStreamReader
( streamReader: ReadableStreamDefaultReader<Uint8Array>, )
io/reader_from_stream_reader.ts:25
↓ 2 callersFunctionreduceGroups
( record: Readonly<Record<string, ReadonlyArray<T>>>, reducer: (accumulator: A, current: T) => A, initia
collections/reduce_groups.ts:40
↓ 2 callersFunctionregExpFromTrimPattern
(t: TemplateStringsArray, pattern: TrimPattern)
text/unstable_trim_by.ts:152
↓ 2 callersMethodregister
(target: WeakKey, heldValue: T)
cache/_serialize_arg_list_test.ts:161
↓ 2 callersMethodregisterTeardown
Registers a teardown listener to write snapshots when tests complete.
expect/_snapshot_state.ts:429
↓ 2 callersMethodregisterTest
This is used internally to register tests.
testing/_test_suite.ts:250
↓ 2 callersMethodremoveFirst
* Remove and return the first element matching the predicate, scanning from * front to back. The gap is closed by shifting whichever side (front or
data_structures/deque.ts:331
↓ 2 callersFunctionrename
( oldpath: string | URL, newpath: string | URL, )
fs/unstable_rename.ts:31
↓ 2 callersFunctionrenameSync
(oldpath: string | URL, newpath: string | URL)
fs/unstable_rename.ts:70
↓ 2 callersFunctionrepeat
(source: Uint8Array, count: number)
bytes/repeat.ts:36
↓ 2 callersFunctionrepeat
(c: string, bytes: number)
io/buffer_test.ts:77
↓ 2 callersFunctionrepeat
( parser: ParserComponent<T>, )
toml/_parser.ts:358
↓ 2 callersFunctionresolve
(...pathSegments: string[])
path/windows/resolve.ts:25
↓ 2 callersFunctionresolveSymlinkTarget
(target: string | URL, linkName: string | URL)
fs/ensure_symlink.ts:9
↓ 2 callersFunctionrestoreGlobals
()
testing/time.ts:220
← previousnext →701–800 of 2,890, ranked by callers