MCPcopy Create free account

hub / github.com/denoland/std / functions

Functions2,890 in github.com/denoland/std

↓ 10 callersMethodclose
* Close the file. Closing a file when you are finished with it is * important to avoid leaking resources. * * @example Usage * ```ts ignor
fs/unstable_types.ts:269
↓ 10 callersMethoddigest
* Returns a new `Promise` object that will digest `data` using the specified * `AlgorithmIdentifier`.
crypto/crypto.ts:170
↓ 10 callersFunctionisEOL
(c: number)
yaml/_chars.ts:35
↓ 10 callersFunctionmakeTempDir
(options?: MakeTempOptions)
fs/unstable_make_temp_dir.ts:33
↓ 10 callersFunctionmakeTempDirSync
(options?: MakeTempOptions)
fs/unstable_make_temp_dir.ts:106
↓ 10 callersMethodskipSeparationSpace
(allowComments: boolean, checkIndent: number)
yaml/_loader_state.ts:558
↓ 10 callersMethodslice
* Slice the 2D array. Like slice on a normal array, this will create a new D2Array. * If no arguments are specified, it will slice the entire D2Arr
data_structures/unstable_2d_array.ts:168
↓ 10 callersMethodstep
( tOrNameOrFn: | Deno.TestStepDefinition | string | ((t: Deno.TestContext) => void | Pro
testing/_test_helpers.ts:36
↓ 10 callersFunctiontoByteStream
( readable: ReadableStream<Uint8Array>, )
streams/unstable_to_byte_stream.ts:32
↓ 9 callersFunctionassert
(mustBeTrue, message)
jsonc/testdata/test262/assert.js:13
↓ 9 callersFunctionassertArg
(pathObject: Partial<ParsedPath>)
path/_common/format.ts:19
↓ 9 callersFunctionassertExists
( actual: T, msg?: string, )
assert/exists.ts:21
↓ 9 callersFunctionassertNotStrictEquals
( actual: T, expected: T, msg?: string, )
assert/not_strict_equals.ts:27
↓ 9 callersFunctionassertStringIncludes
( actual: string, expected: string, msg?: string, )
assert/string_includes.ts:21
↓ 9 callersMethodbytes
* Returns a slice holding the unread portion of the buffer. * * The slice is valid for use only until the next buffer modification (that * is
io/buffer.ts:90
↓ 9 callersFunctionconsume
Consume current character and advance
http/unstable_structured_fields.ts:532
↓ 9 callersFunctionensureDir
(dir: string | URL)
fs/ensure_dir.ts:27
↓ 9 callersFunctionensureDirSync
(dir: string | URL)
fs/ensure_dir.ts:75
↓ 9 callersMethodentries
* Returns an iterator of all `[key, value]` pairs, with each value yielded * individually across all keys, in insertion order. * * Mutating t
data_structures/unstable_multimap.ts:443
↓ 9 callersMethodfrom
* Creates a {@linkcode ReadableStream} from a {@linkcode Request} or * {@linkcode Response}. * * @param request The {@linkcode Request} or {@
http/unstable_formdata_decoder_stream.ts:295
↓ 9 callersFunctionisWhiteSpaceOrEOL
(c: number)
yaml/_chars.ts:43
↓ 9 callersFunctionisWildcard
(id?: string)
semver/parse_range.ts:33
↓ 9 callersFunctionparseRange
(value: string)
semver/parse_range.ts:385
↓ 9 callersFunctionremove
( path: string | URL, options?: RemoveOptions, )
fs/unstable_remove.ts:32
↓ 9 callersFunctionstripAnsiCode
(string: string)
fmt/colors.ts:1000
↓ 9 callersFunctionzip
( ...arrays: { [K in keyof T]: ReadonlyArray<T[K]> } )
collections/zip.ts:34
↓ 8 callersFunctionassertAlmostEquals
( actual: number, expected: number, tolerance?: number, msg?: string, )
assert/almost_equals.ts:33
↓ 8 callersFunctionassertLess
(actual: T, expected: T, msg?: string)
assert/less.ts:23
↓ 8 callersFunctionassertType
( // deno-lint-ignore no-unused-vars expectTrue: T, )
testing/types.ts:41
↓ 8 callersFunctioncode
(open: number[], close: number)
internal/styles.ts:22
↓ 8 callersFunctioncopy
( src: Reader, dst: Writer, options?: { bufSize?: number; }, )
io/copy.ts:28
↓ 8 callersFunctionencodeHeader
( majorType: number, input: number | bigint, output: Uint8Array, offset: number, )
cbor/_common_encode.ts:97
↓ 8 callersFunctiongetFileInfoType
(fileInfo: Deno.FileInfo)
fs/_get_file_info_type.ts:15
↓ 8 callersFunctionisPathSeparator
(code: number)
path/windows/_util.ts:19
↓ 8 callersFunctionisWindowsDeviceRoot
(code: number)
path/windows/_util.ts:23
↓ 8 callersMethodnextUntilChar
(options: { skipComments?: boolean } = { skipComments: true })
toml/_parser.ts:99
↓ 8 callersMethodrestore
If spying on an instance method, this restores the original instance method.
testing/mock.ts:394
↓ 8 callersFunctionrun
(str: string, code: Code)
internal/styles.ts:30
↓ 8 callersFunctionstripAnsiCode
(string: string)
internal/styles.ts:229
↓ 8 callersMethodtick
* Adds the specified number of milliseconds to the fake time. * This will call any functions waiting to be called between the current and new fake
testing/time.ts:658
↓ 8 callersFunctionvalidate
(id: string)
uuid/v3.ts:29
↓ 7 callersMethod#reslice
(len: number)
io/buffer.ts:214
↓ 7 callersFunctionassertIsError
( error: unknown, // deno-lint-ignore no-explicit-any ErrorClass?: abstract new (...args: any[]) => E,
assert/is_error.ts:29
↓ 7 callersFunctionassertObjectMatch
( // deno-lint-ignore no-explicit-any actual: Record<PropertyKey, any>, expected: Record<PropertyKey, un
assert/object_match.ts:32
↓ 7 callersFunctionbasename
(path: string | URL, suffix = "")
path/basename.ts:36
↓ 7 callersFunctionbold
(str: string)
fmt/colors.ts:176
↓ 7 callersFunctioncalcLength
( input: Uint8Array, aI: number, offset: number, )
cbor/_common_decode.ts:7
↓ 7 callersFunctioncalcSizeBase64
(originalSize: number)
encoding/_common64.ts:50
↓ 7 callersFunctiondiff
(A: T[], B: T[])
internal/diff.ts:246
↓ 7 callersFunctionencodeHex
(src: string | Uint8Array | ArrayBuffer)
encoding/hex.ts:57
↓ 7 callersFunctionensureFileSync
(filePath: string | URL)
fs/ensure_file.ts:76
↓ 7 callersMethodgroupBy
* Groups items from an iterable by the result of `keyFn`, returning a new * multimap. Mirrors the shape of * {@link https://developer.mozilla.or
data_structures/unstable_multimap.ts:775
↓ 7 callersMethodisEmpty
* Checks if the deque contains no elements. * * @example Checking if the deque is empty * ```ts * import { Deque } from "@std/data-structu
data_structures/deque.ts:196
↓ 7 callersFunctionisPosixPathSeparator
(code: number)
path/posix/_util.ts:8
↓ 7 callersFunctionit
(...args: ItArgs<T>)
testing/bdd.ts:605
↓ 7 callersMethodnext
* Advances time to when the next scheduled timer is due. * If there are no pending timers, time will not be changed. * * @example Usage *
testing/time.ts:713
↓ 7 callersFunctionopen
( path: string | URL, options?: OpenOptions, )
fs/unstable_open.ts:103
↓ 7 callersFunctionopenSync
(path: string | URL, options?: OpenOptions)
fs/unstable_open.ts:172
↓ 7 callersFunctionparseBuild
(buildmetadata: string)
semver/_shared.ts:186
↓ 7 callersMethodprocess
* Process a chunk of XML text using callbacks. * * This method is synchronous and can be called multiple times with * consecutive chunks of X
xml/_tokenizer.ts:1278
↓ 7 callersMethodreadSync
Reads up to `p.byteLength` bytes into `p`. It resolves to the number * of bytes read (`0` < `n` <= `p.byteLength`) and rejects if any error * en
io/types.ts:62
↓ 7 callersFunctionred
(str: string)
internal/styles.ts:72
↓ 7 callersFunctionremoveSync
( path: string | URL, options?: RemoveOptions, )
fs/unstable_remove.ts:81
↓ 7 callersMethodreset
This is used internally for testing this module.
testing/_test_suite.ts:242
↓ 7 callersFunctionrestore
(id?: number)
testing/mock.ts:597
↓ 7 callersFunctionwalk
( root: string | URL, options?: WalkOptions, )
fs/walk.ts:449
↓ 7 callersFunctionwriteFile
( path: string | URL, data: Uint8Array | ReadableStream<Uint8Array>, options?: WriteFileOptions, )
fs/unstable_write_file.ts:32
↓ 7 callersFunctionwriteFileSync
( path: string | URL, data: Uint8Array, options?: WriteFileOptions, )
fs/unstable_write_file.ts:84
↓ 7 callersMethodwriteSync
Writes `p.byteLength` bytes from `p` to the underlying data * stream. It returns the number of bytes written from `p` (`0` <= `n` * <= `p.byteLe
io/types.ts:95
↓ 6 callersMethod#declaration
(keys: string[])
toml/stringify.ts:180
↓ 6 callersFunctionassertGreaterOrEqual
( actual: T, expected: T, msg?: string, )
assert/greater_or_equal.ts:24
↓ 6 callersFunctionassertIsDate
(date: Date | null, name: string)
fs/copy.ts:38
↓ 6 callersFunctionbuildErrorMessage
({ type, sourceText, position }: Token)
jsonc/parse.ts:342
↓ 6 callersFunctionbuildMessage
( diffResult: ReadonlyArray<DiffResult<string>>, options: BuildMessageOptions = {}, truncateDiff?: (
internal/build_message.ts:109
↓ 6 callersFunctioncalcSizeBase32
(rawSize: number)
encoding/_common32.ts:52
↓ 6 callersFunctiondecode
(input: Uint8Array, offset: number)
cbor/_common_decode.ts:26
↓ 6 callersFunctiondiffStr
(A: string, B: string)
internal/diff_str.ts:158
↓ 6 callersFunctionencode
( input: CborType, output: Uint8Array, offset: number, )
cbor/_common_encode.ts:63
↓ 6 callersFunctionensureFile
(filePath: string | URL)
fs/ensure_file.ts:29
↓ 6 callersFunctionequal
(a: unknown, b: unknown)
assert/equal.ts:112
↓ 6 callersFunctionfn
()
async/delay_test.ts:146
↓ 6 callersFunctiongreen
(str: string)
internal/styles.ts:92
↓ 6 callersFunctionisStatus
(status: number)
http/status.ts:332
↓ 6 callersFunctionisWhiteSpace
(c: number)
yaml/_chars.ts:39
↓ 6 callersFunctionparse
(text: string)
jsonc/parse.ts:24
↓ 6 callersFunctionparse
(tomlString: string)
toml/parse.ts:25
↓ 6 callersMethodparse
(string: string)
datetime/_date_time_formatter.ts:639
↓ 6 callersFunctionparseDictionary
(input: string)
http/unstable_structured_fields.ts:630
↓ 6 callersMethodpopFront
* Remove and return the front element, or `undefined` if the deque is empty. * * @example Popping from the front * ```ts * import { Deque
data_structures/deque.ts:302
↓ 6 callersFunctionreadFile
( path: string | URL, options?: ReadFileOptions, )
fs/unstable_read_file.ts:27
↓ 6 callersMethodreleaseLock
()
tar/untar_stream.ts:313
↓ 6 callersMethodrunMicrotasks
* Runs all pending microtasks. * * @example Usage * ```ts * import { FakeTime } from "@std/testing/time"; * import { assert } from "@st
testing/time.ts:617
↓ 6 callersFunctionsplitToWords
(input: string)
text/_util.ts:14
↓ 6 callersFunctiontoFileInfo
(s: import("node:fs").Stats)
fs/_to_file_info.ts:6
↓ 5 callersMethod#isIllegalLiteralChar
(code: number)
xml/_tokenizer.ts:407
↓ 5 callersMethod#reslice
(len: number)
streams/buffer.ts:360
↓ 5 callersMethod#siftDown
Bubble the entry at `pos` down while a child is smaller.
data_structures/unstable_indexed_heap.ts:511
↓ 5 callersMethodappend
(codepoint: CodePoint, width: EffectiveWidth)
cli/_tools/generate_data.ts:150
↓ 5 callersFunctionascend
(a: T, b: T)
data_structures/comparators.ts:23
↓ 5 callersFunctionassertArgs
(path: string, suffix: string)
path/_common/basename.ts:45
← previousnext →101–200 of 2,890, ranked by callers