Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/denoland/std
/ functions
Functions
2,890 in github.com/denoland/std
⨍
Functions
2,890
◇
Types & classes
637
↓ 1 callers
Function
adjustSplitBack
* 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 callers
Function
adjustSplitForward
* If `index` lands on a low surrogate, advance one position so we don't split * a surrogate pair.
text/unstable_truncate.ts:145
↓ 1 callers
Function
advanceUntilComplete
( time: FakeTime, tickMs: number, task: () => Promise<T>, )
async/delay_test.ts:200
↓ 1 callers
Function
after
( fn: (this: T) => void | Promise<void>, )
testing/bdd.ts:1013
↓ 1 callers
Function
afterEach
( fn: (this: T) => void | Promise<void>, )
testing/bdd.ts:1077
↓ 1 callers
Function
aggregateGroupsTest
( input: [ Record<string, ReadonlyArray<T>>, (current: T, key: string, first: boolean, accumulator?:
collections/aggregate_groups_test.ts:6
↓ 1 callers
Function
aliasIsBoolean
( aliasMap: Map<string, Set<string>>, booleanSet: Set<string>, key: string, )
cli/parse_args.ts:485
↓ 1 callers
Function
allKeyed
( record: PromiseRecord<T>, )
async/all_keyed.ts:92
↓ 1 callers
Function
allSettledKeyed
( record: PromiseRecord<T>, )
async/all_keyed.ts:165
↓ 1 callers
Function
append
( out: string[], directive: string, value?: number | true | string[], )
http/unstable_cache_control.ts:362
↓ 1 callers
Function
appendHeader
(headers: Headers, name: string, value: string)
http/unstable_message_signatures.ts:858
↓ 1 callers
Function
applyInlineUpdates
()
expect/_snapshot_state.ts:274
↓ 1 callers
Function
applyMatcher
(value: unknown, args: unknown[])
expect/expect.ts:210
↓ 1 callers
Function
assertAllOptions
* 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 callers
Function
assertBlocks
Helper to assert that a promise is blocked until released
async/unstable_semaphore_test.ts:13
↓ 1 callers
Function
assertClassDocs
* 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 callers
Function
assertClassPropertyDocs
* 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 callers
Function
assertConstructorDocs
* 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 callers
Function
assertContentfulEntries
( cache: TtlCache<K, V>, entries: [key: K, value: V][], )
cache/ttl_cache_test.ts:26
↓ 1 callers
Function
assertDescribeOptions
( expectedOptions: Omit<Deno.TestDefinition, "name" | "fn">, cb: (fns: readonly [Spy, Spy]) => void, )
testing/_test_helpers.ts:74
↓ 1 callers
Function
assertDiffMessage
(a: unknown, b: unknown, expected: string)
assert/unstable_equals_test.ts:10
↓ 1 callers
Function
assertDirectory
(path: string, expectMode?: number)
fs/unstable_mkdir_test.ts:19
↓ 1 callers
Function
assertDocs
(specifiers: string[])
_tools/check_docs.ts:392
↓ 1 callers
Function
assertEntries
( cache: TtlCache<K, V>, entries: [key: K, value: V | typeof UNSET][], )
cache/ttl_cache_test.ts:9
↓ 1 callers
Function
assertEnv
(env: Record<string, string>)
dotenv/mod_test.ts:233
↓ 1 callers
Function
assertHasDeprecationDesc
(document: DocNodeWithJsDoc<DocNode>)
_tools/check_docs.ts:379
↓ 1 callers
Function
assertHasNoNewline
(value: string, varName: string, errPrefix: string)
http/server_sent_event_stream.ts:25
↓ 1 callers
Function
assertHasParamDefinition
* Asserts that a @param tag has a corresponding function definition.
_tools/check_docs.ts:96
↓ 1 callers
Function
assertHasReturnTag
(document: { jsDoc: JsDoc; location: Location })
_tools/check_docs.ts:78
↓ 1 callers
Function
assertHooks
* 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 callers
Function
assertInlineSnapshot
( actual: unknown, expectedSnapshot: string, msgOrOpts?: string | InlineSnapshotOptions<unknown>, )
testing/unstable_snapshot.ts:218
↓ 1 callers
Function
assertInterfaceDocs
(document: DocNodeWithJsDoc<DocNodeInterface>)
_tools/check_docs.ts:371
↓ 1 callers
Function
assertInvalidStringify
( transformer: typeof JsonStringifyStream, chunks: unknown[], options: StringifyStreamOptions, // deno
json/stringify_stream_test.ts:21
↓ 1 callers
Function
assertIsError
( error: unknown, // deno-lint-ignore no-explicit-any ErrorClass?: abstract new (...args: any[]) => E,
expect/_assert_is_error.ts:18
↓ 1 callers
Function
assertIsIterable
(value: any)
expect/_matchers.ts:539
↓ 1 callers
Function
assertItOptions
( expectedOptions: Omit<Deno.TestDefinition, "name" | "fn">, cb: (fn: Spy) => void, )
testing/_test_helpers.ts:117
↓ 1 callers
Function
assertLevenshteinBidi
(a: string, b: string, distance: number)
text/levenshtein_distance_test.ts:5
↓ 1 callers
Function
assertLintPluginDiagnostics
( source: string, // Note: if empty, means no lint errors expectedDiagnostics: Deno.lint.Diagnostic[],
_tools/lint_plugin_test.ts:7
↓ 1 callers
Function
assertMinimumDescribeOptions
( cb: (fn: readonly [Spy, Spy]) => void, )
testing/_test_helpers.ts:111
↓ 1 callers
Function
assertMinimumItOptions
( cb: (fn: Spy) => void, )
testing/_test_helpers.ts:155
↓ 1 callers
Function
assertMinimumOptions
* 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 callers
Function
assertMissing
(path: string | URL)
fs/unstable_write_text_file_test.ts:26
↓ 1 callers
Function
assertMissing
(path: string | URL)
fs/unstable_write_file_test.ts:24
↓ 1 callers
Function
assertMissing
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 callers
Function
assertModuleDoc
* Checks a module document for: * - Code snippets that execute successfully.
_tools/check_docs.ts:350
↓ 1 callers
Function
assertNoError
(error: string)
testing/snapshot_test.ts:375
↓ 1 callers
Function
assertOnly
* 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 callers
Function
assertRestored
(expected: boolean[])
testing/mock_test.ts:835
↓ 1 callers
Function
assertSpyCallArgs
( spy: SpyLike<Self, Args, Return>, callIndex: number, argsStart?: number | ExpectedArgs, argsEnd?: nu
testing/mock.ts:1593
↓ 1 callers
Function
assertSpyCallAsync
( spy: SpyLike<Self, Args, Promise<Return>>, callIndex: number, expected?: ExpectedSpyCall<Self, Args, P
testing/mock.ts:1358
↓ 1 callers
Function
assertUniqueLabel
(headers: Headers, label: string)
http/unstable_message_signatures.ts:872
↓ 1 callers
Function
assertValidLinkname
(linkname: string)
tar/tar_stream.ts:704
↓ 1 callers
Function
assertValidPath
(path: string)
tar/tar_stream.ts:679
↓ 1 callers
Function
assertValidStringify
( transformer: typeof JsonStringifyStream, chunks: unknown[], expect: string[], options?: StringifyStr
json/stringify_stream_test.ts:9
↓ 1 callers
Function
associateByTest
( input: [Array<T>, (el: T) => string], expected: { [x: string]: T }, message?: string, )
collections/associate_by_test.ts:6
↓ 1 callers
Function
associateWithTest
( input: [readonly string[], (el: string) => T], expected: { [x: string]: T }, message?: string, )
collections/associate_with_test.ts:6
↓ 1 callers
Function
asymmetricEqual
(a: unknown, b: unknown)
expect/_equal.ts:19
↓ 1 callers
Function
asyncFn
()
testing/time_test.ts:289
↓ 1 callers
Function
base64decode
(b64)
crypto/_wasm/lib/deno_std_wasm_crypto.mjs:2272
↓ 1 callers
Function
basicInspect
(v: unknown)
internal/format.ts:78
↓ 1 callers
Function
before
( fn: (this: T) => void | Promise<void>, )
testing/bdd.ts:947
↓ 1 callers
Function
beforeEach
()
data_structures/_binary_search_node_test.ts:7
↓ 1 callers
Function
beforeEach
( fn: (this: T) => void | Promise<void>, )
testing/bdd.ts:1045
↓ 1 callers
Function
bgGreen
(str: string)
internal/styles.ts:202
↓ 1 callers
Function
bgGreen
(str: string)
fmt/colors.ts:621
↓ 1 callers
Function
bgRed
(str: string)
internal/styles.ts:184
↓ 1 callers
Function
bgRed
(str: string)
fmt/colors.ts:604
↓ 1 callers
Function
binarySearch
( haystack: T, needle: T[number], )
collections/unstable_binary_search.ts:36
↓ 1 callers
Function
blockHeader
(string: string, indentPerLevel: number)
yaml/_dumper_state.ts:366
↓ 1 callers
Function
brightBlack
(str: string)
internal/styles.ts:166
↓ 1 callers
Function
brightBlack
(str: string)
fmt/colors.ts:451
↓ 1 callers
Function
bumpPrerelease
( currentPrerelease: ReadonlyArray<string | number> = [], newPrerelease: string | undefined, )
semver/increment.ts:24
↓ 1 callers
Function
bumpPrereleaseNumber
(prerelease: ReadonlyArray<string | number> = [])
semver/increment.ts:6
↓ 1 callers
Function
calcEntity
( entity: string | ReturnType<TextEncoder["encode"]>, { algorithm = DEFAULT_ALGORITHM }: ETagOptions, )
http/etag.ts:60
↓ 1 callers
Function
calcFileInfo
( fileInfo: FileInfo, { algorithm = DEFAULT_ALGORITHM }: ETagOptions, )
http/etag.ts:79
↓ 1 callers
Function
calculateMonthsDifference
(from: Date, to: Date)
datetime/difference.ts:32
↓ 1 callers
Function
canParse
(value: string)
semver/can_parse.ts:20
↓ 1 callers
Method
cancel
(reason)
http/unstable_formdata_encoder_stream.ts:133
↓ 1 callers
Function
canonicalizeToBytes
(value: JsonValue)
json/canonicalize.ts:188
↓ 1 callers
Function
capitalizeWord
(word: string)
text/_util.ts:18
↓ 1 callers
Method
ceiling
* 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 callers
Function
charCodeToHexString
* Encodes a Unicode character code point as a hexadecimal escape sequence.
yaml/_dumper_state.ts:82
↓ 1 callers
Function
charWidth
(char: string)
cli/unicode_width.ts:21
↓ 1 callers
Function
check
( pkg: string, paths: string[] = ["mod.ts"], )
_tools/check_circular_package_dependencies.ts:59
↓ 1 callers
Function
checkCircularDeps
Checks circular deps between sub modules
_tools/check_circular_package_dependencies.ts:120
↓ 1 callers
Function
checkDocs
(specifiers: string[])
_tools/check_docs.ts:421
↓ 1 callers
Function
checkExists
(path: string | URL)
fs/unstable_remove_test.ts:14
↓ 1 callers
Function
checkExistsSync
(path: string | URL)
fs/unstable_remove_test.ts:26
↓ 1 callers
Function
checkFormat
( path: typeof windows | typeof posix, testCases: FormatTestCase[], )
path/parse_format_test.ts:126
↓ 1 callers
Function
checkIdentifier
( v1: ReadonlyArray<string | number> = [], v2: ReadonlyArray<string | number> = [], )
semver/_shared.ts:15
↓ 1 callers
Function
checkIsWsl
()
webgpu/_test_utils.ts:3
↓ 1 callers
Function
checkParseFormat
( path: typeof windows | typeof posix, testCases: Array<[string, string, string?]>, )
path/parse_format_test.ts:92
↓ 1 callers
Function
checkResolved
()
async/retry_test.ts:277
↓ 1 callers
Function
checkSpecialCaseParseFormat
( path: typeof windows | typeof posix, testCases: ParseTestCase[], )
path/parse_format_test.ts:117
↓ 1 callers
Function
chmod
(path: string | URL, mode: number)
fs/unstable_chmod.ts:44
↓ 1 callers
Function
chmodSync
(path: string | URL, mode: number)
fs/unstable_chmod.ts:78
↓ 1 callers
Function
chooseScalarStyle
( string: string, singleLineOnly: boolean, indentPerLevel: number, lineWidth: number, implicitTypes:
yaml/_dumper_state.ts:183
↓ 1 callers
Function
chown
( path: string | URL, uid: number | null, gid: number | null, )
fs/unstable_chown.ts:28
↓ 1 callers
Function
chownSync
( path: string | URL, uid: number | null, gid: number | null, )
fs/unstable_chown.ts:66
↓ 1 callers
Function
chunkTest
( input: [Array<I>, number], expected: Array<Array<I>>, message?: string, )
collections/chunk_test.ts:6
← previous
next →
1,001–1,100 of 2,890, ranked by callers