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
↓ 5 callers
Function
assertGreater
(actual: T, expected: T, msg?: string)
assert/greater.ts:24
↓ 5 callers
Function
bold
(str: string)
internal/styles.ts:52
↓ 5 callers
Function
bytesToUuid
(bytes: number[] | Uint8Array)
uuid/_common.ts:14
↓ 5 callers
Function
calcSizeHex
(originalSize: number)
encoding/_common16.ts:28
↓ 5 callers
Function
decodeEntities
(text: string, xml11: boolean)
xml/_entities.ts:99
↓ 5 callers
Function
describe
( ...args: DescribeArgs<T> )
testing/bdd.ts:1257
↓ 5 callers
Function
disposableStack
()
internal/_testing.ts:5
↓ 5 callers
Function
encodeBase64
(data: ArrayBuffer | Uint8Array | string)
encoding/base64.ts:52
↓ 5 callers
Function
fail
(msg?: string)
assert/fail.ts:18
↓ 5 callers
Method
finalize
* 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 callers
Function
format
(version: SemVer)
semver/format.ts:28
↓ 5 callers
Function
fromFileUrl
(url: URL | string)
path/windows/from_file_url.ts:22
↓ 5 callers
Function
fromFileUrl
(url: URL | string)
path/posix/from_file_url.ts:20
↓ 5 callers
Function
generate
( namespace: string, data: Uint8Array, )
uuid/v3.ts:56
↓ 5 callers
Function
green
(str: string)
fmt/colors.ts:332
↓ 5 callers
Method
insert
* 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 callers
Function
inspectArg
(arg: unknown)
expect/_inspect_args.ts:8
↓ 5 callers
Function
isCloser
(value: unknown)
io/_common.ts:6
↓ 5 callers
Function
isNameChar
(code: number)
xml/_name_chars.ts:158
↓ 5 callers
Function
isPascalCase
(string: string)
_tools/lint_plugin.ts:15
↓ 5 callers
Function
isSubdir
( src: string | URL, dest: string | URL, sep = SEPARATOR, )
fs/_is_subdir.ts:18
↓ 5 callers
Method
isTerminal
* 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 callers
Function
isWhitespace
(code: number)
xml/_parse_sync.ts:191
↓ 5 callers
Function
makeTempFile
(options?: MakeTempOptions)
fs/unstable_make_temp_file.ts:38
↓ 5 callers
Function
makeTempFileSync
(options?: MakeTempOptions)
fs/unstable_make_temp_file.ts:111
↓ 5 callers
Function
mapper
( // deno-lint-ignore no-explicit-any target: any, ua: string, tuples: MatchingTuple[], )
http/user_agent.ts:167
↓ 5 callers
Function
normalizeString
( path: string, allowAboveRoot: boolean, separator: string, isPathSeparator: (code: number) => boolean
path/_common/normalize_string.ts:9
↓ 5 callers
Method
pad
* Pad a string * @param s text to pad
fmt/printf.ts:553
↓ 5 callers
Function
parse
( text: string, options: ParseOptions = {}, )
ini/parse.ts:144
↓ 5 callers
Method
pushBack
* 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 callers
Function
randomSeeded
(seed: bigint)
random/seeded.ts:30
↓ 5 callers
Function
readFileSync
(path: string | URL)
fs/unstable_read_file.ts:64
↓ 5 callers
Function
red
(str: string)
fmt/colors.ts:315
↓ 5 callers
Function
relative
(from: string, to: string)
path/relative.ts:30
↓ 5 callers
Method
releaseLock
()
cbor/sequence_decoder_stream.ts:274
↓ 5 callers
Function
serializeItem
(value: Item)
http/unstable_structured_fields.ts:1239
↓ 5 callers
Function
serializeList
(list: List)
http/unstable_structured_fields.ts:1160
↓ 5 callers
Function
skipSP
Skip required whitespace (at least one SP)
http/unstable_structured_fields.ts:544
↓ 5 callers
Method
stringifyNode
(value: unknown, { level, block, compact, isKey }: { level: number; block: boolean; compact: boole
yaml/_dumper_state.ts:748
↓ 5 callers
Function
stripTrailingSeparators
( segment: string, isSep: (char: number) => boolean, )
path/_common/strip_trailing_separators.ts:6
↓ 5 callers
Function
stubProperty
( self: Self, property: Prop, value: Self[Prop], )
testing/unstable_stub_property.ts:30
↓ 5 callers
Function
symlink
( oldpath: string | URL, newpath: string | URL, options?: SymlinkOptions, )
fs/unstable_symlink.ts:27
↓ 5 callers
Function
symlinkSync
( oldpath: string | URL, newpath: string | URL, options?: SymlinkOptions, )
fs/unstable_symlink.ts:67
↓ 5 callers
Method
toArray
* 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 callers
Function
toBytes
( stream: ReadableStream<Uint8Array>, )
streams/to_bytes.ts:24
↓ 5 callers
Function
toFileUrl
(path: string)
path/to_file_url.ts:28
↓ 5 callers
Function
toText
( stream: ReadableStream<string> | ReadableStream<Uint8Array>, )
streams/to_text.ts:31
↓ 5 callers
Method
utime
* 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 callers
Method
utimeSync
* 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 callers
Method
writeSync
* 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 callers
Method
#decode
( byte: number, )
cbor/sequence_decoder_stream.ts:216
↓ 4 callers
Method
#encode
( x: CborStreamInput, )
cbor/sequence_encoder_stream.ts:118
↓ 4 callers
Method
#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 callers
Method
#maybeShrink
()
data_structures/deque.ts:859
↓ 4 callers
Method
#readIndefinite
( denyInnerIndefinite: boolean, message?: string, )
cbor/sequence_decoder_stream.ts:182
↓ 4 callers
Method
#readSnapshotFile
()
expect/_snapshot_state.ts:378
↓ 4 callers
Method
#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 callers
Method
add
* 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 callers
Function
addHook
( name: HookNames, fn: (this: T) => void | Promise<void>, )
testing/bdd.ts:866
↓ 4 callers
Function
assertArrayIncludes
( actual: ArrayLikeArg<T>, expected: ArrayLikeArg<T>, msg?: string, )
assert/array_includes.ts:40
↓ 4 callers
Function
assertInvalidParse
( text: string, // deno-lint-ignore no-explicit-any ErrorClass: new (...args: any[]) => Error, msgIncl
jsonc/parse_test.ts:20
↓ 4 callers
Function
assertNotEquals
( actual: T, expected: T, options: EqualOptions = {}, )
expect/_assert_not_equals.ts:24
↓ 4 callers
Function
assertNotMatch
( actual: string, expected: RegExp, msg?: string, )
assert/not_match.ts:21
↓ 4 callers
Function
assertValidParse
(text: string, expected: unknown)
jsonc/parse_test.ts:16
↓ 4 callers
Function
binary
( value: Uint8Array, )
http/unstable_structured_fields.ts:241
↓ 4 callers
Method
cancel
()
cbor/_map_decoded_stream.ts:61
↓ 4 callers
Method
cancel
()
http/unstable_formdata_decoder_stream.ts:236
↓ 4 callers
Method
captureSegment
(start: number, end: number, checkJson: boolean)
yaml/_loader_state.ts:349
↓ 4 callers
Function
character
(str: string)
toml/_parser.ts:398
↓ 4 callers
Function
clampAndTruncate
* 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 callers
Method
composeNode
({ parentIndent, nodeContext, allowToSeek, allowCompact }: { parentIndent: number; nodeContext: number
yaml/_loader_state.ts:1569
↓ 4 callers
Function
createCollector
Creates callbacks that collect tokens into an array.
xml/_tokenizer_test.ts:24
↓ 4 callers
Function
createInitialState
Creates initial circuit breaker state.
async/unstable_circuit_breaker.ts:256
↓ 4 callers
Function
dedent
( input: TemplateStringsArray | string, ...values: unknown[] )
text/unstable_dedent.ts:72
↓ 4 callers
Function
deepMerge
( record: Readonly<T>, other: Readonly<U>, options?: Readonly<Options>, )
collections/deep_merge.ts:209
↓ 4 callers
Method
digestSync
* Returns a ArrayBuffer with the result of digesting `data` using the * specified `AlgorithmIdentifier`.
crypto/crypto.ts:179
↓ 4 callers
Method
directionFromParent
()
data_structures/_binary_search_node.ts:29
↓ 4 callers
Method
dispatchWarning
(message: string)
yaml/_loader_state.ts:285
↓ 4 callers
Function
eTag
( entity: string | ReturnType<TextEncoder["encode"]> | FileInfo, options: ETagOptions = {}, )
http/etag.ts:151
↓ 4 callers
Function
existsSync
( path: string | URL, options?: ExistsOptions, )
fs/exists.ts:263
↓ 4 callers
Function
extract
(text: string)
front_matter/any.ts:40
↓ 4 callers
Function
extractFrontMatter
( input: string, extractRegExp: RegExp, )
front_matter/_shared.ts:3
↓ 4 callers
Method
finalize
* 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 callers
Method
findIndex
* 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 callers
Method
format
(date: Date, options: Options = {})
datetime/_date_time_formatter.ts:173
↓ 4 callers
Function
getNodeOs
()
fs/_utils.ts:20
↓ 4 callers
Function
getNodePath
()
fs/_utils.ts:27
↓ 4 callers
Function
getSpyCall
( spy: SpyLike<Self, Args, Return>, callIndex: number, )
testing/mock.ts:1222
↓ 4 callers
Function
getWriteFsFlag
(opt: WriteBooleanOptions)
fs/_get_fs_flag.ts:22
↓ 4 callers
Function
globToRegExp
( glob: string, options: GlobOptions = {}, )
path/glob_to_regexp.ts:87
↓ 4 callers
Function
isCamelCase
(string: string)
_tools/lint_plugin.ts:21
↓ 4 callers
Function
isIPv4
(addr: string)
net/unstable_ip.ts:24
↓ 4 callers
Function
isReservedPiTarget
(target: string)
xml/_common.ts:391
↓ 4 callers
Function
isWildcardComparator
(c: Comparator)
semver/_shared.ts:196
↓ 4 callers
Function
joinGlobs
( globs: string[], options: GlobOptions = {}, )
path/join_globs.ts:35
↓ 4 callers
Function
joinKeys
(keys: string[])
toml/stringify.ts:6
↓ 4 callers
Function
lstatSync
(path: string | URL)
fs/unstable_lstat.ts:60
↓ 4 callers
Function
mkdir
( path: string | URL, options?: MkdirOptions, )
fs/unstable_mkdir.ts:53
↓ 4 callers
Function
mkdirSync
(path: string | URL, options?: MkdirOptions)
fs/unstable_mkdir.ts:88
↓ 4 callers
Method
multiply
(a: number, b: number)
data_structures/_test_utils.ts:3
← previous
next →
201–300 of 2,890, ranked by callers