API Reference

Every API, from the types

Generated from Bun's TypeScript definitions in packages/bun-types. Symbols are colour-coded by kind; press / to search.

Bun modules

Node.js modules

node:assertBun's implementation of the node:assert module.node:async_hooksBun's implementation of the node:async_hooks module.node:bufferBun's implementation of the node:buffer module.node:child_processBun's implementation of the node:child_process module.node:clusterBun's implementation of the node:cluster module.node:cryptoBun's implementation of the node:crypto module.node:dgramBun's implementation of the node:dgram module.node:diagnostics_channelBun's implementation of the node:diagnostics_channel module.node:dnsBun's implementation of the node:dns module.node:dns/promisesBun's implementation of the node:dns/promises module.node:eventsBun's implementation of the node:events module.node:ffiBun's implementation of the node:ffi module.node:fsBun's implementation of the node:fs module.node:fs/promisesBun's implementation of the node:fs/promises module.node:httpBun's implementation of the node:http module.node:http2Bun's implementation of the node:http2 module.node:httpsBun's implementation of the node:https module.node:inspectorBun's implementation of the node:inspector module.node:inspector/promisesBun's implementation of the node:inspector/promises module.node:moduleBun's implementation of the node:module module.node:netBun's implementation of the node:net module.node:osBun's implementation of the node:os module.node:pathBun's implementation of the node:path module.node:perf_hooksBun's implementation of the node:perf_hooks module.node:punycodeBun's implementation of the node:punycode module.node:querystringBun's implementation of the node:querystring module.node:quicBun's implementation of the node:quic module.node:readlineBun's implementation of the node:readline module.node:readline/promisesBun's implementation of the node:readline/promises module.node:streamBun's implementation of the node:stream module.node:stream/consumersBun's implementation of the node:stream/consumers module.node:stream/iterBun's implementation of the node:stream/iter module.node:stream/promisesBun's implementation of the node:stream/promises module.node:stream/webBun's implementation of the node:stream/web module.node:string_decoderBun's implementation of the node:string_decoder module.node:testBun's implementation of the node:test module.node:test/reportersBun's implementation of the node:test/reporters module.node:timers/promisesBun's implementation of the node:timers/promises module.node:tlsBun's implementation of the node:tls module.node:trace_eventsBun's implementation of the node:trace_events module.node:ttyBun's implementation of the node:tty module.node:urlBun's implementation of the node:url module.node:utilBun's implementation of the node:util module.node:util/typesBun's implementation of the node:util/types module.node:v8Bun's implementation of the node:v8 module.node:vmBun's implementation of the node:vm module.node:wasiBun's implementation of the node:wasi module.node:worker_threadsBun's implementation of the node:worker_threads module.node:zlibBun's implementation of the node:zlib module.node:zlib/iterBun's implementation of the node:zlib/iter module.