mirror of
https://github.com/oven-sh/bun
synced 2026-02-09 18:38:55 +00:00
9.0 KiB
9.0 KiB
Many web APIs aren't relevant in the context of a server-first runtime like Bun, such as the DOM API, localStorage, and History. Many others, though, are broadly useful outside of the browser context; when possible, Bun implements these Web-standard APIs instead of introducing new APIs.
The following Web APIs are partially or completely supported.
Globals
{% table %}
- Crypto
cryptoSubtleCryptoCryptoKey
-
Debugging
- Encoding and decoding
atobbtoaTextEncoderTextDecoder
- Timeouts
setTimeoutclearTimeout
- Intervals
setIntervalclearInterval
- Microtasks
queueMicrotask
- Errors
reportErrorResolveErrorBuildError
- Blob
Blob
- Realms
ShadowRealm
- WebSockets
WebSocket
- URLs
URLURLSearchParams
- Streams
ReadableStreamWritableStreamTransformStreamByteLengthQueuingStrategyCountQueuingStrategyplus associated*Reader,*Writer, and*Controllerclasses.