mirror of
https://github.com/oven-sh/bun
synced 2026-02-09 18:38:55 +00:00
* Add missing JSON API to Web APIs page Unless I'm missing something obvious, it appears that Bun has the JSON API (`stringify`/`parse`) but is not listed anywhere in the documentation. https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON * Include JSON in global docs
6.7 KiB
6.7 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
BuildError- 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
ResolveError- 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 %}