mirror of
https://github.com/oven-sh/bun
synced 2026-02-02 15:08:46 +00:00
6.8 KiB
6.8 KiB
Bun implements the following globals.
{% table %}
- Global
- Source
- Notes
AbortController- Web
AbortSignal- Web
alert- Web
- Intended for command-line tools
Blob- Web
Buffer- Node.js
- See Node.js >
Buffer
Bun- Bun
- Subject to change as additional APIs are added
confirm- Web
- Intended for command-line tools
__dirname- Node.js
__filename- Node.js
atob()- Web
btoa()- Web
BuildMessage- Bun
clearImmediate()- Web
clearInterval()- Web
clearTimeout()- Web
console- Web
Crypto- Web
crypto- Web
CryptoKey- Web
CustomEvent- Web
Event- Web
- Also
ErrorEventCloseEventMessageEvent.
EventTarget- Web
exports- Node.js
fetch- Web
FormData- Web
global- Node.js
- See Node.js >
global.
globalThis- Cross-platform
- Aliases to
global
Headers- Web
HTMLRewriter- Cloudflare
JSON- Web
MessageEvent- Web
module- Node.js
performance- Web
process- Node.js
- See Node.js >
process
prompt- Web
- Intended for command-line tools
queueMicrotask()- Web
ReadableStream- Web
reportError- Web
require()- Node.js
ResolveMessage- Bun
Response- Web
Request- Web
setImmediate()- Web
setInterval()- Web
setTimeout()- Web
ShadowRealm- Web
- Stage 3 proposal
SubtleCrypto- Web
DOMException- Web
TextDecoder- Web
TextEncoder- Web
TransformStream- Web
URL- Web
URLSearchParams- Web
WebAssembly- Web
WritableStream- Web
{% /table %}