MCPcopy Create free account

hub / github.com/denoland/std / functions

Functions2,890 in github.com/denoland/std

↓ 5 callersFunctionassertGreater
(actual: T, expected: T, msg?: string)
assert/greater.ts:24
↓ 5 callersFunctionbold
(str: string)
internal/styles.ts:52
↓ 5 callersFunctionbytesToUuid
(bytes: number[] | Uint8Array)
uuid/_common.ts:14
↓ 5 callersFunctioncalcSizeHex
(originalSize: number)
encoding/_common16.ts:28
↓ 5 callersFunctiondecodeEntities
(text: string, xml11: boolean)
xml/_entities.ts:99
↓ 5 callersFunctiondescribe
( ...args: DescribeArgs<T> )
testing/bdd.ts:1257
↓ 5 callersFunctiondisposableStack
()
internal/_testing.ts:5
↓ 5 callersFunctionencodeBase64
(data: ArrayBuffer | Uint8Array | string)
encoding/base64.ts:52
↓ 5 callersFunctionfail
(msg?: string)
assert/fail.ts:18
↓ 5 callersMethodfinalize
* Finalize parsing and validate that all elements are closed. * * @throws {XmlSyntaxError} If there are unclosed elements or no root element.
xml/_parser.ts:682
↓ 5 callersFunctionformat
(version: SemVer)
semver/format.ts:28
↓ 5 callersFunctionfromFileUrl
(url: URL | string)
path/windows/from_file_url.ts:22
↓ 5 callersFunctionfromFileUrl
(url: URL | string)
path/posix/from_file_url.ts:20
↓ 5 callersFunctiongenerate
( namespace: string, data: Uint8Array, )
uuid/v3.ts:56
↓ 5 callersFunctiongreen
(str: string)
fmt/colors.ts:332
↓ 5 callersMethodinsert
* Insert another 2d array at specific coordinates. * If the inserted 2d array is greater than the 2d array this method is called on, * the inser
data_structures/unstable_2d_array.ts:277
↓ 5 callersFunctioninspectArg
(arg: unknown)
expect/_inspect_args.ts:8
↓ 5 callersFunctionisCloser
(value: unknown)
io/_common.ts:6
↓ 5 callersFunctionisNameChar
(code: number)
xml/_name_chars.ts:158
↓ 5 callersFunctionisPascalCase
(string: string)
_tools/lint_plugin.ts:15
↓ 5 callersFunctionisSubdir
( src: string | URL, dest: string | URL, sep = SEPARATOR, )
fs/_is_subdir.ts:18
↓ 5 callersMethodisTerminal
* Checks if the file resource is a TTY (terminal). * * @example Usage * ```ts ignore * // This example is system and context specific *
fs/unstable_types.ts:283
↓ 5 callersFunctionisWhitespace
(code: number)
xml/_parse_sync.ts:191
↓ 5 callersFunctionmakeTempFile
(options?: MakeTempOptions)
fs/unstable_make_temp_file.ts:38
↓ 5 callersFunctionmakeTempFileSync
(options?: MakeTempOptions)
fs/unstable_make_temp_file.ts:111
↓ 5 callersFunctionmapper
( // deno-lint-ignore no-explicit-any target: any, ua: string, tuples: MatchingTuple[], )
http/user_agent.ts:167
↓ 5 callersFunctionnormalizeString
( path: string, allowAboveRoot: boolean, separator: string, isPathSeparator: (code: number) => boolean
path/_common/normalize_string.ts:9
↓ 5 callersMethodpad
* Pad a string * @param s text to pad
fmt/printf.ts:553
↓ 5 callersFunctionparse
( text: string, options: ParseOptions = {}, )
ini/parse.ts:144
↓ 5 callersMethodpushBack
* Append one or more values to the back of the deque. * * @example Pushing values to the back * ```ts * import { Deque } from "@std/data-s
data_structures/deque.ts:217
↓ 5 callersFunctionrandomSeeded
(seed: bigint)
random/seeded.ts:30
↓ 5 callersFunctionreadFileSync
(path: string | URL)
fs/unstable_read_file.ts:64
↓ 5 callersFunctionred
(str: string)
fmt/colors.ts:315
↓ 5 callersFunctionrelative
(from: string, to: string)
path/relative.ts:30
↓ 5 callersMethodreleaseLock
()
cbor/sequence_decoder_stream.ts:274
↓ 5 callersFunctionserializeItem
(value: Item)
http/unstable_structured_fields.ts:1239
↓ 5 callersFunctionserializeList
(list: List)
http/unstable_structured_fields.ts:1160
↓ 5 callersFunctionskipSP
Skip required whitespace (at least one SP)
http/unstable_structured_fields.ts:544
↓ 5 callersMethodstringifyNode
(value: unknown, { level, block, compact, isKey }: { level: number; block: boolean; compact: boole
yaml/_dumper_state.ts:748
↓ 5 callersFunctionstripTrailingSeparators
( segment: string, isSep: (char: number) => boolean, )
path/_common/strip_trailing_separators.ts:6
↓ 5 callersFunctionstubProperty
( self: Self, property: Prop, value: Self[Prop], )
testing/unstable_stub_property.ts:30
↓ 5 callersFunctionsymlink
( oldpath: string | URL, newpath: string | URL, options?: SymlinkOptions, )
fs/unstable_symlink.ts:27
↓ 5 callersFunctionsymlinkSync
( oldpath: string | URL, newpath: string | URL, options?: SymlinkOptions, )
fs/unstable_symlink.ts:67
↓ 5 callersMethodtoArray
* Return a shallow copy of the deque's contents as an array, in * front-to-back order. * * @example Converting to an array * ```ts * im
data_structures/deque.ts:603
↓ 5 callersFunctiontoBytes
( stream: ReadableStream<Uint8Array>, )
streams/to_bytes.ts:24
↓ 5 callersFunctiontoFileUrl
(path: string)
path/to_file_url.ts:28
↓ 5 callersFunctiontoText
( stream: ReadableStream<string> | ReadableStream<Uint8Array>, )
streams/to_text.ts:31
↓ 5 callersMethodutime
* Changes the access (`atime`) and modification (`mtime`) times of the * file stream resource. Given times are either in seconds (UNIX epoch * t
fs/unstable_types.ts:519
↓ 5 callersMethodutimeSync
* Synchronously changes the access (`atime`) and modification (`mtime`) times * of the file stream resource. Given times are either in seconds (UNI
fs/unstable_types.ts:532
↓ 5 callersMethodwriteSync
* Synchronously write the contents of the array buffer (`p`) to the file. * * Returns the number of bytes written. * * **It is not guarant
fs/unstable_types.ts:568
↓ 4 callersMethod#decode
( byte: number, )
cbor/sequence_decoder_stream.ts:216
↓ 4 callersMethod#encode
( x: CborStreamInput, )
cbor/sequence_encoder_stream.ts:118
↓ 4 callersMethod#findNode
* Finds the node matching the given selection criteria. * * When searching for higher nodes, returns the lowest node that is higher than * th
data_structures/unstable_binary_search_tree.ts:243
↓ 4 callersMethod#maybeShrink
()
data_structures/deque.ts:859
↓ 4 callersMethod#readIndefinite
( denyInnerIndefinite: boolean, message?: string, )
cbor/sequence_decoder_stream.ts:182
↓ 4 callersMethod#readSnapshotFile
()
expect/_snapshot_state.ts:378
↓ 4 callersMethod#updatePositionForRegion
* Update position tracking for a region of text using indexOf for newlines. * This is more efficient than char-by-char for regions with sparse newl
xml/_tokenizer.ts:636
↓ 4 callersMethodadd
* Appends a value to the list stored under the given key. Duplicate values * are preserved. * * @experimental **UNSTABLE**: New API, yet to b
data_structures/unstable_multimap.ts:171
↓ 4 callersFunctionaddHook
( name: HookNames, fn: (this: T) => void | Promise<void>, )
testing/bdd.ts:866
↓ 4 callersFunctionassertArrayIncludes
( actual: ArrayLikeArg<T>, expected: ArrayLikeArg<T>, msg?: string, )
assert/array_includes.ts:40
↓ 4 callersFunctionassertInvalidParse
( text: string, // deno-lint-ignore no-explicit-any ErrorClass: new (...args: any[]) => Error, msgIncl
jsonc/parse_test.ts:20
↓ 4 callersFunctionassertNotEquals
( actual: T, expected: T, options: EqualOptions = {}, )
expect/_assert_not_equals.ts:24
↓ 4 callersFunctionassertNotMatch
( actual: string, expected: RegExp, msg?: string, )
assert/not_match.ts:21
↓ 4 callersFunctionassertValidParse
(text: string, expected: unknown)
jsonc/parse_test.ts:16
↓ 4 callersFunctionbinary
( value: Uint8Array, )
http/unstable_structured_fields.ts:241
↓ 4 callersMethodcancel
()
cbor/_map_decoded_stream.ts:61
↓ 4 callersMethodcancel
()
http/unstable_formdata_decoder_stream.ts:236
↓ 4 callersMethodcaptureSegment
(start: number, end: number, checkJson: boolean)
yaml/_loader_state.ts:349
↓ 4 callersFunctioncharacter
(str: string)
toml/_parser.ts:398
↓ 4 callersFunctionclampAndTruncate
* Clamp and truncate color codes * @param n The input number * @param max The number to truncate to * @param min The number to truncate from
fmt/colors.ts:854
↓ 4 callersMethodcomposeNode
({ parentIndent, nodeContext, allowToSeek, allowCompact }: { parentIndent: number; nodeContext: number
yaml/_loader_state.ts:1569
↓ 4 callersFunctioncreateCollector
Creates callbacks that collect tokens into an array.
xml/_tokenizer_test.ts:24
↓ 4 callersFunctioncreateInitialState
Creates initial circuit breaker state.
async/unstable_circuit_breaker.ts:256
↓ 4 callersFunctiondedent
( input: TemplateStringsArray | string, ...values: unknown[] )
text/unstable_dedent.ts:72
↓ 4 callersFunctiondeepMerge
( record: Readonly<T>, other: Readonly<U>, options?: Readonly<Options>, )
collections/deep_merge.ts:209
↓ 4 callersMethoddigestSync
* Returns a ArrayBuffer with the result of digesting `data` using the * specified `AlgorithmIdentifier`.
crypto/crypto.ts:179
↓ 4 callersMethoddirectionFromParent
()
data_structures/_binary_search_node.ts:29
↓ 4 callersMethoddispatchWarning
(message: string)
yaml/_loader_state.ts:285
↓ 4 callersFunctioneTag
( entity: string | ReturnType<TextEncoder["encode"]> | FileInfo, options: ETagOptions = {}, )
http/etag.ts:151
↓ 4 callersFunctionexistsSync
( path: string | URL, options?: ExistsOptions, )
fs/exists.ts:263
↓ 4 callersFunctionextract
(text: string)
front_matter/any.ts:40
↓ 4 callersFunctionextractFrontMatter
( input: string, extractRegExp: RegExp, )
front_matter/_shared.ts:3
↓ 4 callersMethodfinalize
* Finalize tokenization using callbacks. * * This method should be called after all chunks have been processed. * It flushes any pending text
xml/_tokenizer.ts:2577
↓ 4 callersMethodfindIndex
* Return the index of the first element matching the predicate, scanning * from front to back. Returns `-1` if no match is found. * * @exampl
data_structures/deque.ts:414
↓ 4 callersMethodformat
(date: Date, options: Options = {})
datetime/_date_time_formatter.ts:173
↓ 4 callersFunctiongetNodeOs
()
fs/_utils.ts:20
↓ 4 callersFunctiongetNodePath
()
fs/_utils.ts:27
↓ 4 callersFunctiongetSpyCall
( spy: SpyLike<Self, Args, Return>, callIndex: number, )
testing/mock.ts:1222
↓ 4 callersFunctiongetWriteFsFlag
(opt: WriteBooleanOptions)
fs/_get_fs_flag.ts:22
↓ 4 callersFunctionglobToRegExp
( glob: string, options: GlobOptions = {}, )
path/glob_to_regexp.ts:87
↓ 4 callersFunctionisCamelCase
(string: string)
_tools/lint_plugin.ts:21
↓ 4 callersFunctionisIPv4
(addr: string)
net/unstable_ip.ts:24
↓ 4 callersFunctionisReservedPiTarget
(target: string)
xml/_common.ts:391
↓ 4 callersFunctionisWildcardComparator
(c: Comparator)
semver/_shared.ts:196
↓ 4 callersFunctionjoinGlobs
( globs: string[], options: GlobOptions = {}, )
path/join_globs.ts:35
↓ 4 callersFunctionjoinKeys
(keys: string[])
toml/stringify.ts:6
↓ 4 callersFunctionlstatSync
(path: string | URL)
fs/unstable_lstat.ts:60
↓ 4 callersFunctionmkdir
( path: string | URL, options?: MkdirOptions, )
fs/unstable_mkdir.ts:53
↓ 4 callersFunctionmkdirSync
(path: string | URL, options?: MkdirOptions)
fs/unstable_mkdir.ts:88
↓ 4 callersMethodmultiply
(a: number, b: number)
data_structures/_test_utils.ts:3
← previousnext →201–300 of 2,890, ranked by callers