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
↓ 10 callers
Method
close
* 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 callers
Method
digest
* Returns a new `Promise` object that will digest `data` using the specified * `AlgorithmIdentifier`.
crypto/crypto.ts:170
↓ 10 callers
Function
isEOL
(c: number)
yaml/_chars.ts:35
↓ 10 callers
Function
makeTempDir
(options?: MakeTempOptions)
fs/unstable_make_temp_dir.ts:33
↓ 10 callers
Function
makeTempDirSync
(options?: MakeTempOptions)
fs/unstable_make_temp_dir.ts:106
↓ 10 callers
Method
skipSeparationSpace
(allowComments: boolean, checkIndent: number)
yaml/_loader_state.ts:558
↓ 10 callers
Method
slice
* 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 callers
Method
step
( tOrNameOrFn: | Deno.TestStepDefinition | string | ((t: Deno.TestContext) => void | Pro
testing/_test_helpers.ts:36
↓ 10 callers
Function
toByteStream
( readable: ReadableStream<Uint8Array>, )
streams/unstable_to_byte_stream.ts:32
↓ 9 callers
Function
assert
(mustBeTrue, message)
jsonc/testdata/test262/assert.js:13
↓ 9 callers
Function
assertArg
(pathObject: Partial<ParsedPath>)
path/_common/format.ts:19
↓ 9 callers
Function
assertExists
( actual: T, msg?: string, )
assert/exists.ts:21
↓ 9 callers
Function
assertNotStrictEquals
( actual: T, expected: T, msg?: string, )
assert/not_strict_equals.ts:27
↓ 9 callers
Function
assertStringIncludes
( actual: string, expected: string, msg?: string, )
assert/string_includes.ts:21
↓ 9 callers
Method
bytes
* 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 callers
Function
consume
Consume current character and advance
http/unstable_structured_fields.ts:532
↓ 9 callers
Function
ensureDir
(dir: string | URL)
fs/ensure_dir.ts:27
↓ 9 callers
Function
ensureDirSync
(dir: string | URL)
fs/ensure_dir.ts:75
↓ 9 callers
Method
entries
* 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 callers
Method
from
* 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 callers
Function
isWhiteSpaceOrEOL
(c: number)
yaml/_chars.ts:43
↓ 9 callers
Function
isWildcard
(id?: string)
semver/parse_range.ts:33
↓ 9 callers
Function
parseRange
(value: string)
semver/parse_range.ts:385
↓ 9 callers
Function
remove
( path: string | URL, options?: RemoveOptions, )
fs/unstable_remove.ts:32
↓ 9 callers
Function
stripAnsiCode
(string: string)
fmt/colors.ts:1000
↓ 9 callers
Function
zip
( ...arrays: { [K in keyof T]: ReadonlyArray<T[K]> } )
collections/zip.ts:34
↓ 8 callers
Function
assertAlmostEquals
( actual: number, expected: number, tolerance?: number, msg?: string, )
assert/almost_equals.ts:33
↓ 8 callers
Function
assertLess
(actual: T, expected: T, msg?: string)
assert/less.ts:23
↓ 8 callers
Function
assertType
( // deno-lint-ignore no-unused-vars expectTrue: T, )
testing/types.ts:41
↓ 8 callers
Function
code
(open: number[], close: number)
internal/styles.ts:22
↓ 8 callers
Function
copy
( src: Reader, dst: Writer, options?: { bufSize?: number; }, )
io/copy.ts:28
↓ 8 callers
Function
encodeHeader
( majorType: number, input: number | bigint, output: Uint8Array, offset: number, )
cbor/_common_encode.ts:97
↓ 8 callers
Function
getFileInfoType
(fileInfo: Deno.FileInfo)
fs/_get_file_info_type.ts:15
↓ 8 callers
Function
isPathSeparator
(code: number)
path/windows/_util.ts:19
↓ 8 callers
Function
isWindowsDeviceRoot
(code: number)
path/windows/_util.ts:23
↓ 8 callers
Method
nextUntilChar
(options: { skipComments?: boolean } = { skipComments: true })
toml/_parser.ts:99
↓ 8 callers
Method
restore
If spying on an instance method, this restores the original instance method.
testing/mock.ts:394
↓ 8 callers
Function
run
(str: string, code: Code)
internal/styles.ts:30
↓ 8 callers
Function
stripAnsiCode
(string: string)
internal/styles.ts:229
↓ 8 callers
Method
tick
* 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 callers
Function
validate
(id: string)
uuid/v3.ts:29
↓ 7 callers
Method
#reslice
(len: number)
io/buffer.ts:214
↓ 7 callers
Function
assertIsError
( error: unknown, // deno-lint-ignore no-explicit-any ErrorClass?: abstract new (...args: any[]) => E,
assert/is_error.ts:29
↓ 7 callers
Function
assertObjectMatch
( // deno-lint-ignore no-explicit-any actual: Record<PropertyKey, any>, expected: Record<PropertyKey, un
assert/object_match.ts:32
↓ 7 callers
Function
basename
(path: string | URL, suffix = "")
path/basename.ts:36
↓ 7 callers
Function
bold
(str: string)
fmt/colors.ts:176
↓ 7 callers
Function
calcLength
( input: Uint8Array, aI: number, offset: number, )
cbor/_common_decode.ts:7
↓ 7 callers
Function
calcSizeBase64
(originalSize: number)
encoding/_common64.ts:50
↓ 7 callers
Function
diff
(A: T[], B: T[])
internal/diff.ts:246
↓ 7 callers
Function
encodeHex
(src: string | Uint8Array | ArrayBuffer)
encoding/hex.ts:57
↓ 7 callers
Function
ensureFileSync
(filePath: string | URL)
fs/ensure_file.ts:76
↓ 7 callers
Method
groupBy
* 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 callers
Method
isEmpty
* 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 callers
Function
isPosixPathSeparator
(code: number)
path/posix/_util.ts:8
↓ 7 callers
Function
it
(...args: ItArgs<T>)
testing/bdd.ts:605
↓ 7 callers
Method
next
* 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 callers
Function
open
( path: string | URL, options?: OpenOptions, )
fs/unstable_open.ts:103
↓ 7 callers
Function
openSync
(path: string | URL, options?: OpenOptions)
fs/unstable_open.ts:172
↓ 7 callers
Function
parseBuild
(buildmetadata: string)
semver/_shared.ts:186
↓ 7 callers
Method
process
* 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 callers
Method
readSync
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 callers
Function
red
(str: string)
internal/styles.ts:72
↓ 7 callers
Function
removeSync
( path: string | URL, options?: RemoveOptions, )
fs/unstable_remove.ts:81
↓ 7 callers
Method
reset
This is used internally for testing this module.
testing/_test_suite.ts:242
↓ 7 callers
Function
restore
(id?: number)
testing/mock.ts:597
↓ 7 callers
Function
walk
( root: string | URL, options?: WalkOptions, )
fs/walk.ts:449
↓ 7 callers
Function
writeFile
( path: string | URL, data: Uint8Array | ReadableStream<Uint8Array>, options?: WriteFileOptions, )
fs/unstable_write_file.ts:32
↓ 7 callers
Function
writeFileSync
( path: string | URL, data: Uint8Array, options?: WriteFileOptions, )
fs/unstable_write_file.ts:84
↓ 7 callers
Method
writeSync
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 callers
Method
#declaration
(keys: string[])
toml/stringify.ts:180
↓ 6 callers
Function
assertGreaterOrEqual
( actual: T, expected: T, msg?: string, )
assert/greater_or_equal.ts:24
↓ 6 callers
Function
assertIsDate
(date: Date | null, name: string)
fs/copy.ts:38
↓ 6 callers
Function
buildErrorMessage
({ type, sourceText, position }: Token)
jsonc/parse.ts:342
↓ 6 callers
Function
buildMessage
( diffResult: ReadonlyArray<DiffResult<string>>, options: BuildMessageOptions = {}, truncateDiff?: (
internal/build_message.ts:109
↓ 6 callers
Function
calcSizeBase32
(rawSize: number)
encoding/_common32.ts:52
↓ 6 callers
Function
decode
(input: Uint8Array, offset: number)
cbor/_common_decode.ts:26
↓ 6 callers
Function
diffStr
(A: string, B: string)
internal/diff_str.ts:158
↓ 6 callers
Function
encode
( input: CborType, output: Uint8Array, offset: number, )
cbor/_common_encode.ts:63
↓ 6 callers
Function
ensureFile
(filePath: string | URL)
fs/ensure_file.ts:29
↓ 6 callers
Function
equal
(a: unknown, b: unknown)
assert/equal.ts:112
↓ 6 callers
Function
fn
()
async/delay_test.ts:146
↓ 6 callers
Function
green
(str: string)
internal/styles.ts:92
↓ 6 callers
Function
isStatus
(status: number)
http/status.ts:332
↓ 6 callers
Function
isWhiteSpace
(c: number)
yaml/_chars.ts:39
↓ 6 callers
Function
parse
(text: string)
jsonc/parse.ts:24
↓ 6 callers
Function
parse
(tomlString: string)
toml/parse.ts:25
↓ 6 callers
Method
parse
(string: string)
datetime/_date_time_formatter.ts:639
↓ 6 callers
Function
parseDictionary
(input: string)
http/unstable_structured_fields.ts:630
↓ 6 callers
Method
popFront
* 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 callers
Function
readFile
( path: string | URL, options?: ReadFileOptions, )
fs/unstable_read_file.ts:27
↓ 6 callers
Method
releaseLock
()
tar/untar_stream.ts:313
↓ 6 callers
Method
runMicrotasks
* Runs all pending microtasks. * * @example Usage * ```ts * import { FakeTime } from "@std/testing/time"; * import { assert } from "@st
testing/time.ts:617
↓ 6 callers
Function
splitToWords
(input: string)
text/_util.ts:14
↓ 6 callers
Function
toFileInfo
(s: import("node:fs").Stats)
fs/_to_file_info.ts:6
↓ 5 callers
Method
#isIllegalLiteralChar
(code: number)
xml/_tokenizer.ts:407
↓ 5 callers
Method
#reslice
(len: number)
streams/buffer.ts:360
↓ 5 callers
Method
#siftDown
Bubble the entry at `pos` down while a child is smaller.
data_structures/unstable_indexed_heap.ts:511
↓ 5 callers
Method
append
(codepoint: CodePoint, width: EffectiveWidth)
cli/_tools/generate_data.ts:150
↓ 5 callers
Function
ascend
(a: T, b: T)
data_structures/comparators.ts:23
↓ 5 callers
Function
assertArgs
(path: string, suffix: string)
path/_common/basename.ts:45
← previous
next →
101–200 of 2,890, ranked by callers