Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/cloudflare/workerd
/ functions
Functions
4,532 in github.com/cloudflare/workerd
⨍
Functions
4,532
◇
Types & classes
2,137
↳
Endpoints
6
↓ 3,021 callers
Function
strictEqual
( actual: unknown, expected: unknown, message?: string | Error )
src/node/internal/internal_assert.ts:236
↓ 877 callers
Method
from
src/workerd/jsg/modules.h:234
↓ 642 callers
Method
on
(eventName: EventName, listener: EventCallback)
src/node/internal/events.ts:75
↓ 442 callers
Function
throws
( fn: () => void, error?: RegExp | Function | Error, message?: string )
src/node/internal/internal_assert.ts:84
↓ 432 callers
Method
push
Forwards the entry to all consumers (except skipConsumer if given). For each consumer, the entry will be used to fulfill any pending consume operation
src/workerd/api/streams/queue.h:215
↓ 423 callers
Method
get
* @param name Name of the Worker script. * @param args Arguments to Worker script. * @param options Options for Dynamic Dispatch invocation. * @
types/defines/wfp.d.ts:31
↓ 399 callers
Method
resolve
src/workerd/jsg/promise.h:325
↓ 384 callers
Method
write
(string: string, encoding?: string)
src/node/internal/internal_buffer.ts:162
↓ 379 callers
Method
toString
(encoding?: string, start?: number, end?: number)
src/node/internal/internal_buffer.ts:161
↓ 281 callers
Function
deepStrictEqual
( actual: unknown, expected: unknown, message?: string | Error )
src/node/internal/internal_assert.ts:327
↓ 257 callers
Method
trackField
src/workerd/jsg/jsg.h:940
↓ 243 callers
Method
forEach
src/workerd/jsg/iterator.h:190
↓ 217 callers
Method
read
(this: Duplex, size: number)
src/node/internal/streams_transform.d.ts:419
↓ 204 callers
Method
end
(buf?: ArrayBufferView | DataView | string)
src/node/internal/internal_stringdecoder.ts:68
↓ 198 callers
Method
includes
(value: number, byteOffset?: number)
src/node/internal/internal_buffer.ts:123
↓ 177 callers
Method
indexOf
(value: number, byteOffset?: number)
src/node/internal/internal_buffer.ts:127
↓ 164 callers
Method
all
()
src/cloudflare/internal/d1-api.ts:472
↓ 159 callers
Method
exec
()
src/workerd/api/tests/url-test.js:9439
↓ 138 callers
Method
alloc
src/workerd/jsg/buffersource.h:89
↓ 133 callers
Method
call
src/workerd/util/capnp-mock.h:105
↓ 132 callers
Method
fill
(value: number, offset?: number, end?: number)
src/node/internal/internal_buffer.ts:119
↓ 131 callers
Method
join
(s)
src/node/internal/streams_util.js:528
↓ 123 callers
Method
map
src/workerd/api/crypto/crypto.h:120
↓ 122 callers
Method
lastIndexOf
(value: number, byteOffset?: number)
src/node/internal/internal_buffer.ts:131
↓ 120 callers
Function
assert
(actual: unknown, message?: string | Error)
src/node/internal/internal_assert.ts:65
↓ 120 callers
Method
destroy
( this: Duplex, error: Error | null, callback: (error: Error | null) => void )
src/node/internal/streams_transform.d.ts:432
↓ 117 callers
Function
testBufs
(string, offset, length, encoding)
src/workerd/api/node/tests/buffer-nodejs-test.js:2602
↓ 102 callers
Method
text
(buf: ArrayBufferView | DataView | string, offset?: number)
src/node/internal/internal_stringdecoder.ts:69
↓ 96 callers
Method
set
src/workerd/jsg/jsvalue.h:451
↓ 94 callers
Method
append
src/workerd/util/string-buffer.h:29
↓ 93 callers
Method
has
src/workerd/api/cache.h:111
↓ 93 callers
Method
push
(v)
src/node/internal/streams_util.js:495
↓ 90 callers
Method
test
()
src/workerd/api/tests/url-test.js:9436
↓ 86 callers
Function
str
(i: number, n: number)
npm/lib/node-install.ts:103
↓ 83 callers
Method
bind
src/workerd/util/sqlite.h:548
↓ 80 callers
Method
emit
(eventName: EventName, ...args: unknown[])
src/node/internal/events.ts:69
↓ 80 callers
Function
from
(key: CryptoKey)
src/node/internal/crypto_keys.ts:94
↓ 80 callers
Method
then
src/workerd/jsg/promise.h:244
↓ 79 callers
Function
check
src/workerd/jsg/util.h:170
↓ 79 callers
Function
validateOffset
( value: number, name: string, min: number = 0, max: number = Number.MAX_SAFE_INTEGER )
src/node/internal/internal_buffer.ts:2553
↓ 78 callers
Method
equals
(other: Uint8Array)
src/node/internal/internal_buffer.ts:118
↓ 75 callers
Method
wait
()
src/workerd/api/tests/htmlrewriter-test.js:640
↓ 73 callers
Function
resolve
(...args)
src/workerd/api/node/tests/streams-test.js:51
↓ 72 callers
Function
inspect
( value: unknown, opts?: Partial<InspectOptionsStylized> | boolean )
src/node/internal/internal_inspect.ts:538
↓ 69 callers
Method
close
Closes the queue. The close is forwarded on to all consumers. If we are already closed or errored, do nothing here.
src/workerd/api/streams/queue.h:162
↓ 60 callers
Function
printNode
(node: ts.Node)
types/src/print.ts:16
↓ 60 callers
Method
visit
src/workerd/jsg/jsg.h:1812
↓ 59 callers
Method
log
()
src/workerd/api/node/tests/util-nodejs-test.js:2267
↓ 57 callers
Method
resume
()
src/workerd/api/node/tests/streams-test.js:3653
↓ 55 callers
Method
compare
( target: Uint8Array, targetStart?: number, targetEnd?: number, sourceStart?: number, sour
src/node/internal/internal_buffer.ts:105
↓ 54 callers
Method
removeListener
(eventName: EventName, listener: EventCallback)
src/node/internal/events.ts:83
↓ 53 callers
Method
concat
(n)
src/node/internal/streams_util.js:536
↓ 52 callers
Method
abort
()
src/workerd/api/tests/js-rpc-test.js:303
↓ 52 callers
Method
reject
src/workerd/jsg/promise.h:349
↓ 51 callers
Method
add
src/workerd/jsg/jsg-test.h:162
↓ 50 callers
Function
fn
()
src/workerd/api/node/tests/util-nodejs-test.js:2352
↓ 50 callers
Method
keys
Our cache does not support cache item enumeration, so this is not possible to implement.
src/workerd/api/cache.h:61
↓ 48 callers
Method
once
(eventName: EventName, listener: EventCallback)
src/node/internal/events.ts:76
↓ 45 callers
Function
rejects
( asyncFn: Promise<any> | (() => Promise<any>), error?: RegExp | Function | Error | string, message?: st
src/node/internal/internal_assert.ts:480
↓ 44 callers
Method
getHandle
src/workerd/jsg/jsg.h:2783
↓ 44 callers
Method
size
src/workerd/jsg/jsg.h:1110
↓ 43 callers
Function
createTypeNode
( type: Type, allowCoercion = false, allowMethodParameterCoercion = false )
types/src/generator/type.ts:209
↓ 43 callers
Method
fetch
(a, b, c)
src/workerd/api/tests/js-rpc-test.js:42
↓ 42 callers
Function
isPathSeparator
(code: number)
src/node/internal/internal_path.ts:36
↓ 40 callers
Function
boundsError
(value: number, length: number, type?: string)
src/node/internal/internal_buffer.ts:2311
↓ 38 callers
Method
fn
* Creates a mock function tracker. * @param {Function} [original] - The original function to be tracked. * @param {Function} [implementation] -
src/node/internal/mock.js:178
↓ 38 callers
Method
write
(buf: ArrayBufferView | DataView | string)
src/node/internal/internal_stringdecoder.ts:67
↓ 37 callers
Method
method
(msg)
src/workerd/api/node/tests/assert-test.js:706
↓ 37 callers
Function
validateString
( value: unknown, name: string )
src/node/internal/validators.ts:147
↓ 36 callers
Method
prepare
(query: string)
src/cloudflare/internal/d1-api.ts:82
↓ 36 callers
Function
protectMethod
(method: unknown)
src/node/zlib.ts:121
↓ 36 callers
Method
shift
()
src/node/internal/streams_util.js:514
↓ 35 callers
Method
match
src/workerd/api/cache.h:108
↓ 34 callers
Method
delete
(a)
src/workerd/api/tests/js-rpc-test.js:267
↓ 34 callers
Method
pop
If a batch is available, swap the buffers and return a Batch object backed by the pop buffer. The caller should destroy the Batch object as soon as th
src/workerd/util/batch-queue.h:81
↓ 33 callers
Method
copy
( target: Uint8Array, targetStart?: number, sourceStart?: number, sourceEnd?: number )
src/node/internal/internal_buffer.ts:112
↓ 33 callers
Function
func
()
src/workerd/api/tests/js-rpc-test.js:1069
↓ 33 callers
Method
length
Returns the length of the vector, in characters.
src/workerd/api/node/buffer-string-search.h:52
↓ 33 callers
Method
now
src/workerd/api/analytics-engine.h:79
↓ 33 callers
Method
resolvedPromise
src/workerd/jsg/promise.h:477
↓ 32 callers
Function
notStrictEqual
( actual: unknown, expected: unknown, message?: string | Error )
src/node/internal/internal_assert.ts:284
↓ 32 callers
Method
trackFieldWithSize
src/workerd/jsg/memory.h:336
↓ 31 callers
Method
prepare
src/workerd/util/sqlite.h:830
↓ 31 callers
Function
test
()
samples/pyodide/worker.py:8
↓ 31 callers
Method
v8Context
src/workerd/jsg/jsg.h:2264
↓ 30 callers
Method
addRef
src/workerd/jsg/jsg.h:2755
↓ 30 callers
Method
increment
(amount)
src/workerd/api/tests/js-rpc-test.js:444
↓ 30 callers
Method
parse
src/workerd/io/observer.h:152
↓ 30 callers
Method
transform
* Apply transform next, returning a transform handle. * You can then apply more transformations or retrieve the output. * @param transform
src/cloudflare/internal/images.d.ts:99
↓ 30 callers
Method
unshift
(v)
src/node/internal/streams_util.js:505
↓ 29 callers
Method
listeners
(eventName: EventName)
src/node/internal/events.ts:73
↓ 29 callers
Method
size
src/workerd/api/crypto/impl.h:381
↓ 29 callers
Method
stylize
(text: string, styleType: Style)
src/node/internal/internal_inspect.ts:225
↓ 29 callers
Function
validateObject
( value: unknown, name: string, options?: ValidateObjectOptions )
src/node/internal/validators.ts:84
↓ 28 callers
Function
testEnd
(encoding, incomplete, next, expected)
src/workerd/api/node/tests/string-decoder-test.js:411
↓ 27 callers
Function
v8StrIntern
src/workerd/jsg/util.h:252
↓ 27 callers
Method
wrap
src/workerd/jsg/value.h:369
↓ 26 callers
Method
begin
src/workerd/jsg/jsg.h:1148
↓ 26 callers
Function
create_formdata
()
src/workerd/api/tests/form-data-test.js:682
↓ 26 callers
Method
run
src/workerd/util/sqlite.h:814
next →
1–100 of 4,532, ranked by callers