MCPcopy Create free account

hub / github.com/denoland/std / functions

Functions2,890 in github.com/denoland/std

↓ 1 callersFunctionadjustSplitBack
* If `index` lands on a low surrogate, back up one position so we don't split * a surrogate pair.
text/unstable_truncate.ts:133
↓ 1 callersFunctionadjustSplitForward
* If `index` lands on a low surrogate, advance one position so we don't split * a surrogate pair.
text/unstable_truncate.ts:145
↓ 1 callersFunctionadvanceUntilComplete
( time: FakeTime, tickMs: number, task: () => Promise<T>, )
async/delay_test.ts:200
↓ 1 callersFunctionafter
( fn: (this: T) => void | Promise<void>, )
testing/bdd.ts:1013
↓ 1 callersFunctionafterEach
( fn: (this: T) => void | Promise<void>, )
testing/bdd.ts:1077
↓ 1 callersFunctionaggregateGroupsTest
( input: [ Record<string, ReadonlyArray<T>>, (current: T, key: string, first: boolean, accumulator?:
collections/aggregate_groups_test.ts:6
↓ 1 callersFunctionaliasIsBoolean
( aliasMap: Map<string, Set<string>>, booleanSet: Set<string>, key: string, )
cli/parse_args.ts:485
↓ 1 callersFunctionallKeyed
( record: PromiseRecord<T>, )
async/all_keyed.ts:92
↓ 1 callersFunctionallSettledKeyed
( record: PromiseRecord<T>, )
async/all_keyed.ts:165
↓ 1 callersFunctionappend
( out: string[], directive: string, value?: number | true | string[], )
http/unstable_cache_control.ts:362
↓ 1 callersFunctionappendHeader
(headers: Headers, name: string, value: string)
http/unstable_message_signatures.ts:858
↓ 1 callersFunctionapplyInlineUpdates
()
expect/_snapshot_state.ts:274
↓ 1 callersFunctionapplyMatcher
(value: unknown, args: unknown[])
expect/expect.ts:210
↓ 1 callersFunctionassertAllOptions
* Asserts that `Deno.test` is called with all of the options for the `it` call in the callback function. * This is used to reduce code duplication
testing/bdd_test.ts:200
↓ 1 callersFunctionassertBlocks
Helper to assert that a promise is blocked until released
async/unstable_semaphore_test.ts:13
↓ 1 callersFunctionassertClassDocs
* Asserts that a class document has: * - A `@typeParam` tag for each type parameter. * - At least one {@linkcode https://jsdoc.app/tags-example | @e
_tools/check_docs.ts:269
↓ 1 callersFunctionassertClassPropertyDocs
* Asserts that a class property document has: * - At least one {@linkcode https://jsdoc.app/tags-example | @example} tag with * a code snippet tha
_tools/check_docs.ts:315
↓ 1 callersFunctionassertConstructorDocs
* Checks a constructor document for: * - No TypeScript parameters marked with `public`, `protected`, or `private`. * - A {@linkcode https://jsdoc.ap
_tools/check_docs.ts:328
↓ 1 callersFunctionassertContentfulEntries
( cache: TtlCache<K, V>, entries: [key: K, value: V][], )
cache/ttl_cache_test.ts:26
↓ 1 callersFunctionassertDescribeOptions
( expectedOptions: Omit<Deno.TestDefinition, "name" | "fn">, cb: (fns: readonly [Spy, Spy]) => void, )
testing/_test_helpers.ts:74
↓ 1 callersFunctionassertDiffMessage
(a: unknown, b: unknown, expected: string)
assert/unstable_equals_test.ts:10
↓ 1 callersFunctionassertDirectory
(path: string, expectMode?: number)
fs/unstable_mkdir_test.ts:19
↓ 1 callersFunctionassertDocs
(specifiers: string[])
_tools/check_docs.ts:392
↓ 1 callersFunctionassertEntries
( cache: TtlCache<K, V>, entries: [key: K, value: V | typeof UNSET][], )
cache/ttl_cache_test.ts:9
↓ 1 callersFunctionassertEnv
(env: Record<string, string>)
dotenv/mod_test.ts:233
↓ 1 callersFunctionassertHasDeprecationDesc
(document: DocNodeWithJsDoc<DocNode>)
_tools/check_docs.ts:379
↓ 1 callersFunctionassertHasNoNewline
(value: string, varName: string, errPrefix: string)
http/server_sent_event_stream.ts:25
↓ 1 callersFunctionassertHasParamDefinition
* Asserts that a @param tag has a corresponding function definition.
_tools/check_docs.ts:96
↓ 1 callersFunctionassertHasReturnTag
(document: { jsDoc: JsDoc; location: Location })
_tools/check_docs.ts:78
↓ 1 callersFunctionassertHooks
* Asserts that all the different hook types are called in the correct order when the tests run. * This is used to reduce code duplication when te
testing/bdd_test.ts:1541
↓ 1 callersFunctionassertInlineSnapshot
( actual: unknown, expectedSnapshot: string, msgOrOpts?: string | InlineSnapshotOptions<unknown>, )
testing/unstable_snapshot.ts:218
↓ 1 callersFunctionassertInterfaceDocs
(document: DocNodeWithJsDoc<DocNodeInterface>)
_tools/check_docs.ts:371
↓ 1 callersFunctionassertInvalidStringify
( transformer: typeof JsonStringifyStream, chunks: unknown[], options: StringifyStreamOptions, // deno
json/stringify_stream_test.ts:21
↓ 1 callersFunctionassertIsError
( error: unknown, // deno-lint-ignore no-explicit-any ErrorClass?: abstract new (...args: any[]) => E,
expect/_assert_is_error.ts:18
↓ 1 callersFunctionassertIsIterable
(value: any)
expect/_matchers.ts:539
↓ 1 callersFunctionassertItOptions
( expectedOptions: Omit<Deno.TestDefinition, "name" | "fn">, cb: (fn: Spy) => void, )
testing/_test_helpers.ts:117
↓ 1 callersFunctionassertLevenshteinBidi
(a: string, b: string, distance: number)
text/levenshtein_distance_test.ts:5
↓ 1 callersFunctionassertLintPluginDiagnostics
( source: string, // Note: if empty, means no lint errors expectedDiagnostics: Deno.lint.Diagnostic[],
_tools/lint_plugin_test.ts:7
↓ 1 callersFunctionassertMinimumDescribeOptions
( cb: (fn: readonly [Spy, Spy]) => void, )
testing/_test_helpers.ts:111
↓ 1 callersFunctionassertMinimumItOptions
( cb: (fn: Spy) => void, )
testing/_test_helpers.ts:155
↓ 1 callersFunctionassertMinimumOptions
* Asserts that `Deno.test` is called with just the name and function for the `it` call in the callback function. * This is used to reduce code dupl
testing/bdd_test.ts:190
↓ 1 callersFunctionassertMissing
(path: string | URL)
fs/unstable_write_text_file_test.ts:26
↓ 1 callersFunctionassertMissing
(path: string | URL)
fs/unstable_write_file_test.ts:24
↓ 1 callersFunctionassertMissing
Tests if the original file/directory is missing since the file is renamed. * Uses Node.js Error instances to check because the `lstatSync` function i
fs/unstable_rename_test.ts:30
↓ 1 callersFunctionassertModuleDoc
* Checks a module document for: * - Code snippets that execute successfully.
_tools/check_docs.ts:350
↓ 1 callersFunctionassertNoError
(error: string)
testing/snapshot_test.ts:375
↓ 1 callersFunctionassertOnly
* Asserts that when only is used on a nested `describe` or `it` call, it will be the only test case or suite that runs in the file. * This is use
testing/bdd_test.ts:1345
↓ 1 callersFunctionassertRestored
(expected: boolean[])
testing/mock_test.ts:835
↓ 1 callersFunctionassertSpyCallArgs
( spy: SpyLike<Self, Args, Return>, callIndex: number, argsStart?: number | ExpectedArgs, argsEnd?: nu
testing/mock.ts:1593
↓ 1 callersFunctionassertSpyCallAsync
( spy: SpyLike<Self, Args, Promise<Return>>, callIndex: number, expected?: ExpectedSpyCall<Self, Args, P
testing/mock.ts:1358
↓ 1 callersFunctionassertUniqueLabel
(headers: Headers, label: string)
http/unstable_message_signatures.ts:872
↓ 1 callersFunctionassertValidLinkname
(linkname: string)
tar/tar_stream.ts:704
↓ 1 callersFunctionassertValidPath
(path: string)
tar/tar_stream.ts:679
↓ 1 callersFunctionassertValidStringify
( transformer: typeof JsonStringifyStream, chunks: unknown[], expect: string[], options?: StringifyStr
json/stringify_stream_test.ts:9
↓ 1 callersFunctionassociateByTest
( input: [Array<T>, (el: T) => string], expected: { [x: string]: T }, message?: string, )
collections/associate_by_test.ts:6
↓ 1 callersFunctionassociateWithTest
( input: [readonly string[], (el: string) => T], expected: { [x: string]: T }, message?: string, )
collections/associate_with_test.ts:6
↓ 1 callersFunctionasymmetricEqual
(a: unknown, b: unknown)
expect/_equal.ts:19
↓ 1 callersFunctionasyncFn
()
testing/time_test.ts:289
↓ 1 callersFunctionbase64decode
(b64)
crypto/_wasm/lib/deno_std_wasm_crypto.mjs:2272
↓ 1 callersFunctionbasicInspect
(v: unknown)
internal/format.ts:78
↓ 1 callersFunctionbefore
( fn: (this: T) => void | Promise<void>, )
testing/bdd.ts:947
↓ 1 callersFunctionbeforeEach
()
data_structures/_binary_search_node_test.ts:7
↓ 1 callersFunctionbeforeEach
( fn: (this: T) => void | Promise<void>, )
testing/bdd.ts:1045
↓ 1 callersFunctionbgGreen
(str: string)
internal/styles.ts:202
↓ 1 callersFunctionbgGreen
(str: string)
fmt/colors.ts:621
↓ 1 callersFunctionbgRed
(str: string)
internal/styles.ts:184
↓ 1 callersFunctionbgRed
(str: string)
fmt/colors.ts:604
↓ 1 callersFunctionbinarySearch
( haystack: T, needle: T[number], )
collections/unstable_binary_search.ts:36
↓ 1 callersFunctionblockHeader
(string: string, indentPerLevel: number)
yaml/_dumper_state.ts:366
↓ 1 callersFunctionbrightBlack
(str: string)
internal/styles.ts:166
↓ 1 callersFunctionbrightBlack
(str: string)
fmt/colors.ts:451
↓ 1 callersFunctionbumpPrerelease
( currentPrerelease: ReadonlyArray<string | number> = [], newPrerelease: string | undefined, )
semver/increment.ts:24
↓ 1 callersFunctionbumpPrereleaseNumber
(prerelease: ReadonlyArray<string | number> = [])
semver/increment.ts:6
↓ 1 callersFunctioncalcEntity
( entity: string | ReturnType<TextEncoder["encode"]>, { algorithm = DEFAULT_ALGORITHM }: ETagOptions, )
http/etag.ts:60
↓ 1 callersFunctioncalcFileInfo
( fileInfo: FileInfo, { algorithm = DEFAULT_ALGORITHM }: ETagOptions, )
http/etag.ts:79
↓ 1 callersFunctioncalculateMonthsDifference
(from: Date, to: Date)
datetime/difference.ts:32
↓ 1 callersFunctioncanParse
(value: string)
semver/can_parse.ts:20
↓ 1 callersMethodcancel
(reason)
http/unstable_formdata_encoder_stream.ts:133
↓ 1 callersFunctioncanonicalizeToBytes
(value: JsonValue)
json/canonicalize.ts:188
↓ 1 callersFunctioncapitalizeWord
(word: string)
text/_util.ts:18
↓ 1 callersMethodceiling
* Finds the lowest (leftmost) value in the binary search tree which is * greater than or equal to the given value, or null if the given value *
data_structures/unstable_binary_search_tree.ts:298
↓ 1 callersFunctioncharCodeToHexString
* Encodes a Unicode character code point as a hexadecimal escape sequence.
yaml/_dumper_state.ts:82
↓ 1 callersFunctioncharWidth
(char: string)
cli/unicode_width.ts:21
↓ 1 callersFunctioncheck
( pkg: string, paths: string[] = ["mod.ts"], )
_tools/check_circular_package_dependencies.ts:59
↓ 1 callersFunctioncheckCircularDeps
Checks circular deps between sub modules
_tools/check_circular_package_dependencies.ts:120
↓ 1 callersFunctioncheckDocs
(specifiers: string[])
_tools/check_docs.ts:421
↓ 1 callersFunctioncheckExists
(path: string | URL)
fs/unstable_remove_test.ts:14
↓ 1 callersFunctioncheckExistsSync
(path: string | URL)
fs/unstable_remove_test.ts:26
↓ 1 callersFunctioncheckFormat
( path: typeof windows | typeof posix, testCases: FormatTestCase[], )
path/parse_format_test.ts:126
↓ 1 callersFunctioncheckIdentifier
( v1: ReadonlyArray<string | number> = [], v2: ReadonlyArray<string | number> = [], )
semver/_shared.ts:15
↓ 1 callersFunctioncheckIsWsl
()
webgpu/_test_utils.ts:3
↓ 1 callersFunctioncheckParseFormat
( path: typeof windows | typeof posix, testCases: Array<[string, string, string?]>, )
path/parse_format_test.ts:92
↓ 1 callersFunctioncheckResolved
()
async/retry_test.ts:277
↓ 1 callersFunctioncheckSpecialCaseParseFormat
( path: typeof windows | typeof posix, testCases: ParseTestCase[], )
path/parse_format_test.ts:117
↓ 1 callersFunctionchmod
(path: string | URL, mode: number)
fs/unstable_chmod.ts:44
↓ 1 callersFunctionchmodSync
(path: string | URL, mode: number)
fs/unstable_chmod.ts:78
↓ 1 callersFunctionchooseScalarStyle
( string: string, singleLineOnly: boolean, indentPerLevel: number, lineWidth: number, implicitTypes:
yaml/_dumper_state.ts:183
↓ 1 callersFunctionchown
( path: string | URL, uid: number | null, gid: number | null, )
fs/unstable_chown.ts:28
↓ 1 callersFunctionchownSync
( path: string | URL, uid: number | null, gid: number | null, )
fs/unstable_chown.ts:66
↓ 1 callersFunctionchunkTest
( input: [Array<I>, number], expected: Array<Array<I>>, message?: string, )
collections/chunk_test.ts:6
← previousnext →1,001–1,100 of 2,890, ranked by callers