versions
node: 20.11.1
deno: 1.42.4
bun: 1.1.4
Cloudflare Workers: 3.52.0
API | Node CJS | Node ESM | Deno | Bun | Cloudflare Workers |
---|---|---|---|---|---|
require | ✅ | ❌ | ❌ | ✅ | ✅ |
AbortController | ✅ | ✅ | ✅ | ✅ | ✅ |
Blob | ✅ | ✅ | ✅ | ✅ | ✅ |
Buffer | ✅ | ✅ | ❌ | ✅ | ❌ |
clearImmediate | ✅ | ✅ | ❌ | ✅ | ❌ |
clearInterval | ✅ | ✅ | ✅ | ✅ | ✅ |
clearTimeout | ✅ | ✅ | ✅ | ✅ | ✅ |
console | ✅ | ✅ | ✅ | ✅ | ✅ |
CustomEvent | ✅ | ✅ | ✅ | ✅ | ✅ |
Event | ✅ | ✅ | ✅ | ✅ | ✅ |
EventTarget | ✅ | ✅ | ✅ | ✅ | ✅ |
File | ✅ | ✅ | ✅ | ✅ | ✅ |
global | ✅ | ✅ | ❌ | ✅ | ❌ |
MessageChannel | ✅ | ✅ | ✅ | ✅ | ❌ |
MessageEvent | ✅ | ✅ | ✅ | ✅ | ✅ |
MessagePort | ✅ | ✅ | ✅ | ✅ | ❌ |
PerformanceEntry | ✅ | ✅ | ✅ | ✅ | ❌ |
PerformanceMark | ✅ | ✅ | ✅ | ✅ | ❌ |
PerformanceMeasure | ✅ | ✅ | ✅ | ✅ | ❌ |
PerformanceObserver | ✅ | ✅ | ❌ | ✅ | ❌ |
PerformanceObserverEntryList | ✅ | ✅ | ❌ | ✅ | ❌ |
PerformanceResourceTiming | ✅ | ✅ | ❌ | ❌ | ❌ |
process | ✅ | ✅ | ❌ | ✅ | ❌ |
queueMicrotask | ✅ | ✅ | ✅ | ✅ | ✅ |
setImmediate | ✅ | ✅ | ❌ | ✅ | ❌ |
setInterval | ✅ | ✅ | ✅ | ✅ | ✅ |
setTimeout | ✅ | ✅ | ✅ | ✅ | ✅ |
structuredClone | ✅ | ✅ | ✅ | ✅ | ✅ |
DOMException | ✅ | ✅ | ✅ | ✅ | ✅ |
TextDecoder | ✅ | ✅ | ✅ | ✅ | ✅ |
TextEncoder | ✅ | ✅ | ✅ | ✅ | ✅ |
URL | ✅ | ✅ | ✅ | ✅ | ✅ |
URLSearchParams | ✅ | ✅ | ✅ | ✅ | ✅ |
WebAssembly | ✅ | ✅ | ✅ | ✅ | ✅ |
ByteLengthQueuingStrategy | ✅ | ✅ | ✅ | ✅ | ✅ |
CompressionStream | ✅ | ✅ | ✅ | ❌ | ✅ |
CountQueuingStrategy | ✅ | ✅ | ✅ | ✅ | ✅ |
DecompressionStream | ✅ | ✅ | ✅ | ❌ | ✅ |
ReadableByteStreamController | ✅ | ✅ | ✅ | ✅ | ✅ |
ReadableStream | ✅ | ✅ | ✅ | ✅ | ✅ |
ReadableStreamBYOBReader | ✅ | ✅ | ✅ | ✅ | ✅ |
ReadableStreamBYOBRequest | ✅ | ✅ | ✅ | ✅ | ✅ |
ReadableStreamDefaultController | ✅ | ✅ | ✅ | ✅ | ✅ |
ReadableStreamDefaultReader | ✅ | ✅ | ✅ | ✅ | ✅ |
TextDecoderStream | ✅ | ✅ | ✅ | ❌ | ✅ |
TextEncoderStream | ✅ | ✅ | ✅ | ❌ | ✅ |
TransformStream | ✅ | ✅ | ✅ | ✅ | ✅ |
TransformStreamDefaultController | ✅ | ✅ | ✅ | ✅ | ❌ |
WritableStream | ✅ | ✅ | ✅ | ✅ | ✅ |
WritableStreamDefaultController | ✅ | ✅ | ✅ | ✅ | ✅ |
WritableStreamDefaultWriter | ✅ | ✅ | ✅ | ✅ | ✅ |
__dirname | ✅ | ❌ | ❌ | ✅ | ❌ |
__filename | ✅ | ❌ | ❌ | ✅ | ❌ |
BroadcastChannel | ✅ | ✅ | ❌ | ✅ | ❌ |
crypto | ✅ | ✅ | ✅ | ✅ | ✅ |
CryptoKey | ✅ | ✅ | ✅ | ✅ | ✅ |
exports | ✅ | ❌ | ❌ | ✅ | ❌ |
fetch | ✅ | ✅ | ✅ | ✅ | ✅ |
FormData | ✅ | ✅ | ✅ | ✅ | ✅ |
Headers | ✅ | ✅ | ✅ | ✅ | ✅ |
module | ✅ | ❌ | ❌ | ✅ | ❌ |
navigator | ❌ | ❌ | ✅ | ✅ | ✅ |
performance | ✅ | ✅ | ✅ | ✅ | ✅ |
Response | ✅ | ✅ | ✅ | ✅ | ✅ |
Request | ✅ | ✅ | ✅ | ✅ | ✅ |
crypto.subtle | ✅ | ✅ | ✅ | ✅ | ✅ |
WebSocket | ❌ | ❌ | ✅ | ✅ | ✅ |
atob | ✅ | ✅ | ✅ | ✅ | ✅ |
btoa | ✅ | ✅ | ✅ | ✅ | ✅ |
module "node:assert" | ✅ | ✅ | ✅ | ✅ | ✅ |
module "node:async_hooks" | ✅ | ✅ | ✅ | ✅ | ✅ |
module "node:buffer" | ✅ | ✅ | ✅ | ✅ | ✅ |
module "node:child_process" | ✅ | ✅ | ✅ | ✅ | ❌ |
module "node:cluster" | ✅ | ✅ | ✅ | ✅ | ❌ |
module "node:console" | ✅ | ✅ | ✅ | ✅ | ❌ |
module "node:constants" | ✅ | ✅ | ✅ | ✅ | ❌ |
module "node:crypto" | ✅ | ✅ | ✅ | ✅ | ✅ |
module "node:dgram" | ✅ | ✅ | ✅ | ✅ | ❌ |
module "node:diagnostics_channel" | ✅ | ✅ | ✅ | ✅ | ✅ |
module "node:dns" | ✅ | ✅ | ✅ | ✅ | ❌ |
module "node:domain" | ✅ | ✅ | ✅ | ✅ | ❌ |
module "node:events" | ✅ | ✅ | ✅ | ✅ | ✅ |
module "node:fs" | ✅ | ✅ | ✅ | ✅ | ❌ |
module "node:http" | ✅ | ✅ | ✅ | ✅ | ❌ |
module "node:http2" | ✅ | ✅ | ✅ | ✅ | ❌ |
module "node:https" | ✅ | ✅ | ✅ | ✅ | ❌ |
module "node:inspector" | ✅ | ✅ | ❌ | ✅ | ❌ |
module "node:module" | ✅ | ✅ | ✅ | ✅ | ❌ |
module "node:net" | ✅ | ✅ | ✅ | ✅ | ❌ |
module "node:os" | ✅ | ✅ | ✅ | ✅ | ❌ |
module "node:path" | ✅ | ✅ | ✅ | ✅ | ✅ |
module "node:perf_hooks" | ✅ | ✅ | ✅ | ✅ | ❌ |
module "node:process" | ✅ | ✅ | ✅ | ✅ | ✅ |
module "node:punycode" | ✅ | ✅ | ✅ | ✅ | ❌ |
module "node:querystring" | ✅ | ✅ | ✅ | ✅ | ❌ |
module "node:readline" | ✅ | ✅ | ✅ | ✅ | ❌ |
module "node:repl" | ✅ | ✅ | ✅ | ✅ | ❌ |
module "node:stream" | ✅ | ✅ | ✅ | ✅ | ✅ |
module "node:string_decoder" | ✅ | ✅ | ✅ | ✅ | ✅ |
module "node:sys" | ✅ | ✅ | ✅ | ✅ | ❌ |
module "node:test" | ✅ | ✅ | ✅ | ❌ | ✅ |
module "node:timers" | ✅ | ✅ | ✅ | ✅ | ❌ |
module "node:tls" | ✅ | ✅ | ✅ | ✅ | ❌ |
module "node:trace_events" | ✅ | ✅ | ❌ | ✅ | ❌ |
module "node:tty" | ✅ | ✅ | ✅ | ✅ | ❌ |
module "node:url" | ✅ | ✅ | ✅ | ✅ | ❌ |
module "node:util" | ✅ | ✅ | ✅ | ✅ | ✅ |
module "node:v8" | ✅ | ✅ | ✅ | ✅ | ❌ |
module "node:vm" | ✅ | ✅ | ✅ | ✅ | ❌ |
module "node:wasi" | ✅ | ✅ | ❌ | ✅ | ❌ |
module "node:worker_threads" | ✅ | ✅ | ✅ | ✅ | ❌ |
module "node:zlib" | ✅ | ✅ | ✅ | ✅ | ❌ |