Skip to main content
Products
Open Source
Deno
Modern runtime for JavaScript and TypeScript
Fresh
Web framework designed for the edge
JSR
TypeScript-first ESM package registry
Cloud
Deploy
Easy serverless hosting for your JavaScript projects
Subhosting
Securely run untrusted code in a scalable sandbox
Pricing
Starts free and scales with your needs
Docs
Manual
Current path
API Reference
Deno Deploy
Deno KV
Deno by Example
Modules
deno.land/x
Standard Library
Node.js & npm
JSR
Blog
Search…
⌘K
Menu
Manual
Runtime APIs
Version
v1.42.0
v1.41.3
v1.41.2
v1.41.1
v1.41.0
v1.40.5
v1.40.4
v1.40.3
v1.40.2
v1.40.1
v1.40.0
v1.39.4
v1.39.3
v1.39.2
v1.39.1
v1.39.0
v1.38.5
v1.38.4
v1.38.3
v1.38.2
v1.38.1
v1.38.0
v1.37.2
v1.37.1
v1.37.0
v1.36.4
v1.36.3
v1.36.2
v1.36.1
v1.36.0
v1.35.3
v1.35.2
v1.35.1
v1.35.0
v1.34.3
v1.34.2
v1.34.1
v1.34.0
v1.33.4
v1.33.3
v1.33.2
v1.33.1
v1.33.0
v1.32.5
v1.32.4
v1.32.3
v1.32.2
v1.32.1
v1.32.0
v1.31.3
v1.31.2
v1.31.1
v1.31.0
v1.30.3
v1.30.2
v1.30.1
v1.30.0
v1.29.4
v1.29.3
v1.29.2
v1.29.1
v1.29.0
v1.28.3
v1.28.2
v1.28.1
v1.28.0
v1.27.2
v1.27.1
v1.27.0
v1.26.2
v1.26.1
v1.26.0
v1.25.4
v1.25.3
v1.25.2
v1.25.1
v1.25.0
v1.24.3
v1.24.2
v1.24.1
v1.24.0
v1.23.4
v1.23.3
v1.23.2
v1.23.1
v1.23.0
v1.22.3
v1.22.2
v1.22.1
v1.22.0
v1.21.3
v1.21.2
v1.21.1
v1.21.0
v1.20.6
v1.20.5
v1.20.4
v1.20.3
v1.20.2
v1.20.1
v1.19.3
v1.19.2
v1.19.1
v1.19.0
v1.18.2
v1.18.1
v1.18.0
v1.17.3
v1.17.2
v1.17.1
v1.17.0
v1.16.4
v1.16.3
v1.16.2
v1.16.1
v1.16.0
v1.15.3
v1.15.2
v1.15.1
v1.15.0
v1.14.3
v1.14.2
v1.14.1
v1.14.0
v1.13.2
v1.13.1
v1.13.0
v1.12.2
v1.12.1
v1.12.0
v1.11.5
v1.11.4
v1.11.3
v1.11.2
v1.11.1
v1.11.0
v1.10.3
v1.10.2
v1.10.1
v1.10.0
v1.9.2
v1.9.1
v1.9.0
v1.8.3
v1.8.2
v1.8.1
v1.8.0
v1.7.5
v1.7.4
v1.7.2
v1.7.1
v1.7.0
v1.6.3
v1.6.2
v1.6.1
v1.6.0
v1.5.4
v1.5.3
v1.5.2
v1.5.1
v1.5.0
v1.4.6
v1.4.5
v1.4.4
v1.4.3
v1.4.2
v1.4.1
v1.4.0
v1.3.3
v1.3.2
v1.3.1
v1.3.0
v1.2.3
v1.2.2
v1.2.1
v1.2.0
v1.1.3
v1.1.2
v1.1.1
v1.1.0
v1.0.5
v1.0.4
v1.0.3
v1.0.2
v1.0.1
v1.0.0
Go to Latest
Show Unstable API
Broadcast Channel
I
v
BroadcastChannel
I
BroadcastChannelEventMap
Compression Streams API
c
CompressionStream
c
DecompressionStream
Console and Debugging
I
Console
I
Deno.InspectOptions
v
console
v
Deno.customInspect
f
Deno.inspect
DOM
I
DOMStringList
DOM APIs
c
MessageChannel
c
MessagePort
I
DomIterable
I
ErrorConstructor
I
MessagePortEventMap
I
StructuredSerializeOptions
T
PostMessageOptions
T
Transferable
f
structuredClone
DOM Events
c
CustomEvent
c
DOMException
c
ErrorEvent
c
Event
c
EventTarget
c
ProgressEvent
I
AddEventListenerOptions
I
CustomEventInit
I
ErrorEventInit
I
EventInit
I
EventListener
I
EventListenerObject
I
EventListenerOptions
I
ProgressEventInit
T
EventListenerOrEventListenerObject
v
onerror
v
onload
v
onunload
f
addEventListener
f
dispatchEvent
f
removeEventListener
Encoding API
I
TextDecodeOptions
I
v
TextDecoder
I
TextDecoderOptions
I
v
TextDecoderStream
I
v
TextEncoder
I
TextEncoderEncodeIntoResult
I
v
TextEncoderStream
f
atob
f
btoa
Errors
N
Deno.errors
c
Deno.errors.AddrInUse
c
Deno.errors.AddrNotAvailable
c
Deno.errors.AlreadyExists
c
Deno.errors.BadResource
c
Deno.errors.BrokenPipe
c
Deno.errors.Busy
c
Deno.errors.ConnectionAborted
c
Deno.errors.ConnectionRefused
c
Deno.errors.ConnectionReset
c
Deno.errors.Http
c
Deno.errors.Interrupted
c
Deno.errors.InvalidData
c
Deno.errors.NotConnected
c
Deno.errors.NotFound
c
Deno.errors.NotSupported
c
Deno.errors.PermissionDenied
c
Deno.errors.TimedOut
c
Deno.errors.UnexpectedEof
c
Deno.errors.WriteZero
ES Modules
I
ImportMeta
Fetch API
c
I
Headers
c
Request
c
Response
I
Body
I
v
FormData
I
RequestInit
I
ResponseInit
T
BodyInit
T
FormDataEntryValue
T
HeadersInit
T
ReferrerPolicy
T
RequestCache
T
RequestCredentials
T
RequestDestination
T
RequestInfo
T
RequestMode
T
RequestRedirect
T
ResponseType
f
fetch
File System
c
Deno.File
c
Deno.FsFile
I
Deno.DirEntry
I
Deno.FileInfo
I
Deno.FsEvent
I
Deno.FsWatcher
I
Deno.MakeTempOptions
I
Deno.MkdirOptions
I
Deno.OpenOptions
I
Deno.ReadFileOptions
I
Deno.RemoveOptions
I
Deno.WriteFileOptions
T
Deno.FsEventFlag
T
Deno.SymlinkOptions
f
Deno.chmod
f
Deno.chmodSync
f
Deno.chown
f
Deno.chownSync
f
Deno.copyFile
f
Deno.copyFileSync
f
Deno.create
f
Deno.createSync
f
Deno.fstat
f
Deno.fstatSync
f
Deno.ftruncate
f
Deno.ftruncateSync
f
Deno.link
f
Deno.linkSync
f
Deno.lstat
f
Deno.lstatSync
f
Deno.makeTempDir
f
Deno.makeTempDirSync
f
Deno.makeTempFile
f
Deno.makeTempFileSync
f
Deno.mkdir
f
Deno.mkdirSync
f
Deno.open
f
Deno.openSync
f
Deno.readDir
f
Deno.readDirSync
f
Deno.readFile
f
Deno.readFileSync
f
Deno.readLink
f
Deno.readLinkSync
f
Deno.readTextFile
f
Deno.readTextFileSync
f
Deno.realPath
f
Deno.realPathSync
f
Deno.remove
f
Deno.removeSync
f
Deno.rename
f
Deno.renameSync
f
Deno.stat
f
Deno.statSync
f
Deno.symlink
f
Deno.symlinkSync
f
Deno.truncate
f
Deno.truncateSync
f
Deno.watchFs
f
Deno.writeFile
f
Deno.writeFileSync
f
Deno.writeTextFile
f
Deno.writeTextFileSync
HTTP Server
I
Deno.HttpConn
I
Deno.RequestEvent
f
Deno.serveHttp
I/O
c
Deno.Buffer
I
Deno.Closer
I
Deno.Reader
I
Deno.ReaderSync
I
Deno.Seeker
I
Deno.SeekerSync
I
Deno.Writer
I
Deno.WriterSync
v
Deno.stderr
v
Deno.stdin
v
Deno.stdout
f
Deno.close
f
Deno.copy
f
Deno.fdatasync
f
Deno.fdatasyncSync
f
Deno.fsync
f
Deno.fsyncSync
f
Deno.isatty
f
Deno.iter
f
Deno.iterSync
f
Deno.read
f
Deno.readAll
f
Deno.readAllSync
f
Deno.readSync
f
Deno.seek
f
Deno.seekSync
f
Deno.write
f
Deno.writeAll
f
Deno.writeAllSync
f
Deno.writeSync
E
Deno.SeekMode
Network
I
Deno.CAARecord
I
Deno.Conn
I
Deno.ConnectOptions
I
Deno.ConnectTlsOptions
I
Deno.Listener
I
Deno.ListenOptions
I
Deno.ListenTlsOptions
I
Deno.MXRecord
I
Deno.NAPTRRecord
I
Deno.NetAddr
I
Deno.ResolveDnsOptions
I
Deno.SOARecord
I
Deno.SRVRecord
I
Deno.StartTlsOptions
I
Deno.TcpConn
I
Deno.TlsConn
I
Deno.TlsHandshakeInfo
I
Deno.TlsListener
I
Deno.UnixAddr
I
Deno.UnixConn
T
Deno.Addr
T
Deno.RecordType
f
Deno.connect
f
Deno.connectTls
f
Deno.listen
f
Deno.listenTls
f
Deno.resolveDns
f
Deno.shutdown
f
Deno.startTls
Observability
c
PromiseRejectionEvent
I
Deno.Metrics
I
Deno.OpMetrics
I
Deno.ResourceMap
I
PromiseRejectionEventInit
v
onunhandledrejection
f
Deno.metrics
f
Deno.resources
Performance API
c
I
Performance
c
PerformanceEntry
c
PerformanceMark
c
PerformanceMeasure
I
PerformanceMarkOptions
I
PerformanceMeasureOptions
T
PerformanceEntryList
v
performance
Permissions
c
Deno.Permissions
c
Deno.PermissionStatus
I
Deno.EnvPermissionDescriptor
I
Deno.FfiPermissionDescriptor
I
Deno.HrtimePermissionDescriptor
I
Deno.NetPermissionDescriptor
I
Deno.PermissionOptionsObject
I
Deno.PermissionStatusEventMap
I
Deno.ReadPermissionDescriptor
I
Deno.RunPermissionDescriptor
I
Deno.WritePermissionDescriptor
T
Deno.PermissionDescriptor
T
Deno.PermissionName
T
Deno.PermissionOptions
T
Deno.PermissionState
v
Deno.permissions
Runtime Environment
I
Deno.MemoryUsage
T
Deno.Signal
v
Deno.args
v
Deno.build
v
Deno.env
v
Deno.mainModule
v
Deno.noColor
v
Deno.pid
v
Deno.ppid
v
Deno.version
f
Deno.addSignalListener
f
Deno.chdir
f
Deno.cwd
f
Deno.execPath
f
Deno.exit
f
Deno.memoryUsage
f
Deno.removeSignalListener
Scheduling
I
VoidFunction
f
queueMicrotask
Streams API
c
MessageEvent
I
v
ByteLengthQueuingStrategy
I
v
CountQueuingStrategy
I
MessageEventInit
I
PipeOptions
I
QueuingStrategy
I
QueuingStrategySizeCallback
I
v
ReadableByteStreamController
I
ReadableByteStreamControllerCallback
I
v
ReadableStream
I
ReadableStreamBYOBReadDoneResult
I
ReadableStreamBYOBReader
I
ReadableStreamBYOBReadValueResult
I
ReadableStreamBYOBRequest
I
v
ReadableStreamDefaultController
I
ReadableStreamDefaultControllerCallback
I
v
ReadableStreamDefaultReader
I
ReadableStreamErrorCallback
I
ReadableStreamReadDoneResult
I
v
ReadableStreamReader
I
ReadableStreamReadValueResult
I
Transformer
I
v
TransformStream
I
v
TransformStreamDefaultController
I
TransformStreamDefaultControllerCallback
I
TransformStreamDefaultControllerTransformCallback
I
UnderlyingByteSource
I
UnderlyingSink
I
UnderlyingSource
I
v
WritableStream
I
v
WritableStreamDefaultController
I
WritableStreamDefaultControllerCloseCallback
I
WritableStreamDefaultControllerStartCallback
I
WritableStreamDefaultControllerWriteCallback
I
v
WritableStreamDefaultWriter
I
WritableStreamErrorCallback
T
ReadableStreamBYOBReadResult
T
ReadableStreamReadResult
Sub Process
c
Deno.Process
I
Deno.RunOptions
T
Deno.ProcessStatus
f
Deno.kill
f
Deno.run
Testing
I
Deno.TestContext
I
Deno.TestDefinition
I
Deno.TestStepDefinition
f
Deno.test
Timers
f
clearInterval
f
clearTimeout
f
setInterval
f
setTimeout
Typed Arrays
T
BufferSource
Web APIs
c
AbortController
c
Location
c
Navigator
c
URL
c
URLPattern
c
URLSearchParams
c
Window
I
v
AbortSignal
I
AbortSignalEventMap
I
URLPatternComponentResult
I
URLPatternInit
I
URLPatternResult
I
WindowEventMap
T
URLPatternInput
v
location
v
navigator
v
self
v
window
f
alert
f
confirm
f
prompt
f
reportError
Web Crypto API
I
AesCbcParams
I
AesCtrParams
I
AesDerivedKeyParams
I
AesGcmParams
I
AesKeyAlgorithm
I
AesKeyGenParams
I
Algorithm
I
Crypto
I
v
CryptoKey
I
v
CryptoKeyPair
I
EcdhKeyDeriveParams
I
EcdsaParams
I
EcKeyAlgorithm
I
EcKeyGenParams
I
EcKeyImportParams
I
HkdfParams
I
HmacImportParams
I
HmacKeyAlgorithm
I
HmacKeyGenParams
I
JsonWebKey
I
KeyAlgorithm
I
Pbkdf2Params
I
RsaHashedImportParams
I
RsaHashedKeyAlgorithm
I
RsaHashedKeyGenParams
I
RsaKeyAlgorithm
I
RsaKeyGenParams
I
RsaOaepParams
I
RsaOtherPrimesInfo
I
RsaPssParams
I
v
SubtleCrypto
T
AlgorithmIdentifier
T
HashAlgorithmIdentifier
T
KeyFormat
T
KeyType
T
KeyUsage
T
NamedCurve
v
crypto
Web File API
c
Blob
c
File
I
BlobPropertyBag
I
FilePropertyBag
I
v
FileReader
I
FileReaderEventMap
T
BlobPart
Web Sockets
c
CloseEvent
c
WebSocket
I
CloseEventInit
I
Deno.UpgradeWebSocketOptions
I
Deno.WebSocketUpgrade
I
WebSocketEventMap
T
BinaryType
f
Deno.upgradeWebSocket
Web Storage API
I
v
Storage
v
localStorage
v
sessionStorage
Web Workers
c
Worker
I
AbstractWorkerEventMap
I
WorkerEventMap
I
WorkerOptions
WebAssembly
N
WebAssembly
c
WebAssembly.CompileError
c
WebAssembly.Global
c
WebAssembly.Instance
c
WebAssembly.LinkError
c
WebAssembly.Memory
c
WebAssembly.Module
c
WebAssembly.RuntimeError
c
WebAssembly.Table
I
WebAssembly.GlobalDescriptor
I
WebAssembly.MemoryDescriptor
I
WebAssembly.ModuleExportDescriptor
I
WebAssembly.ModuleImportDescriptor
I
WebAssembly.TableDescriptor
I
WebAssembly.WebAssemblyInstantiatedSource
T
WebAssembly.Exports
T
WebAssembly.ExportValue
T
WebAssembly.ImportExportKind
T
WebAssembly.Imports
T
WebAssembly.ImportValue
T
WebAssembly.ModuleImports
T
WebAssembly.TableKind
T
WebAssembly.ValueType
f
WebAssembly.compile
f
WebAssembly.compileStreaming
f
WebAssembly.instantiate
f
WebAssembly.instantiateStreaming
f
WebAssembly.validate
WebGPU
c
GPU
c
GPUAdapter
c
GPUAdapterInfo
c
GPUBindGroup
c
GPUBindGroupLayout
c
GPUBuffer
c
GPUBufferUsage
c
GPUColorWrite
c
GPUCommandBuffer
c
GPUCommandEncoder
c
GPUComputePassEncoder
c
GPUComputePipeline
c
GPUDevice
c
GPUError
c
GPUMapMode
c
GPUOutOfMemoryError
c
GPUPipelineLayout
c
GPUQuerySet
c
GPUQueue
c
GPURenderBundle
c
GPURenderBundleEncoder
c
GPURenderPassEncoder
c
GPURenderPipeline
c
GPUSampler
c
GPUShaderModule
c
GPUShaderStage
c
GPUSupportedFeatures
c
GPUSupportedLimits
c
GPUTexture
c
GPUTextureUsage
c
GPUTextureView
c
GPUUncapturedErrorEvent
c
GPUValidationError
I
GPUBindGroupDescriptor
I
GPUBindGroupEntry
I
GPUBindGroupLayoutDescriptor
I
GPUBindGroupLayoutEntry
I
GPUBlendComponent
I
GPUBlendState
I
GPUBufferBinding
I
GPUBufferBindingLayout
I
GPUBufferDescriptor
I
GPUColorDict
I
GPUColorTargetState
I
GPUCommandBufferDescriptor
I
GPUCommandEncoderDescriptor
I
GPUCompilationInfo
I
GPUCompilationMessage
I
GPUComputePassDescriptor
I
GPUComputePipelineDescriptor
I
GPUDepthStencilState
I
GPUDeviceDescriptor
I
GPUDeviceLostInfo
I
GPUExtent3DDict
I
GPUFragmentState
I
GPUImageCopyBuffer
I
GPUImageCopyTexture
I
GPUImageDataLayout
I
GPUMultisampleState
I
GPUObjectBase
I
GPUObjectDescriptorBase
I
GPUOrigin3DDict
I
GPUPipelineBase
I
GPUPipelineDescriptorBase
I
GPUPipelineLayoutDescriptor
I
GPUPrimitiveState
I
GPUProgrammablePassEncoder
I
GPUProgrammableStage
I
GPUQuerySetDescriptor
I
GPURenderBundleDescriptor
I
GPURenderBundleEncoderDescriptor
I
GPURenderEncoderBase
I
GPURenderPassColorAttachment
I
GPURenderPassDepthStencilAttachment
I
GPURenderPassDescriptor
I
GPURenderPassLayout
I
GPURenderPipelineDescriptor
I
GPURequestAdapterOptions
I
GPUSamplerBindingLayout
I
GPUSamplerDescriptor
I
GPUShaderModuleDescriptor
I
GPUStencilFaceState
I
GPUStorageTextureBindingLayout
I
GPUTextureBindingLayout
I
GPUTextureDescriptor
I
GPUTextureViewDescriptor
I
GPUUncapturedErrorEventInit
I
GPUVertexAttribute
I
GPUVertexBufferLayout
I
GPUVertexState
T
GPUAddressMode
T
GPUAutoLayoutMode
T
GPUBindingResource
T
GPUBlendFactor
T
GPUBlendOperation
T
GPUBufferBindingType
T
GPUBufferUsageFlags
T
GPUColor
T
GPUColorWriteFlags
T
GPUCompareFunction
T
GPUCompilationMessageType
T
GPUCullMode
T
GPUDeviceLostReason
T
GPUErrorFilter
T
GPUExtent3D
T
GPUFeatureName
T
GPUFilterMode
T
GPUFrontFace
T
GPUIndexFormat
T
GPULoadOp
T
GPUMapModeFlags
T
GPUMipmapFilterMode
T
GPUOrigin3D
T
GPUPipelineStatisticName
T
GPUPowerPreference
T
GPUPrimitiveTopology
T
GPUQueryType
T
GPUSamplerBindingType
T
GPUShaderStageFlags
T
GPUStencilOperation
T
GPUStorageTextureAccess
T
GPUStoreOp
T
GPUTextureAspect
T
GPUTextureDimension
T
GPUTextureFormat
T
GPUTextureSampleType
T
GPUTextureUsageFlags
T
GPUTextureViewDimension
T
GPUVertexFormat
T
GPUVertexStepMode
N
Deno
interface
EventListener
Call Signatures
(
evt
:
Event
):
void
|
Promise
<
void
>