On this page
Namespaces
| Deno | The global namespace where Deno specific, non-standard APIs are located. |
| Deno.errors | A set of error constructors that are raised by Deno APIs. |
| WebAssembly |
Classes
| AbortController | A controller object that allows you to abort one or more DOM requests as and when desired. |
| Blob | A file-like object of immutable, raw data. Blobs represent data that isn't necessarily in a JavaScript-native format. The File interface is based on Blob, inheriting blob functionality and expanding it to support files on the user's system. |
| CloseEvent | |
| CompressionStream | An API for compressing a stream of data. |
| CustomEvent | |
| DecompressionStream | An API for decompressing a stream of data. |
| Deno.Buffer deprecated | A variable-sized buffer of bytes with |
| Deno.errors.AddrInUse | Raised when attempting to open a server listener on an address and port that already has a listener. |
| Deno.errors.AddrNotAvailable | Raised when the underlying operating system reports an |
| Deno.errors.AlreadyExists | Raised when trying to create a resource, like a file, that already exits. |
| Deno.errors.BadResource | The underlying IO resource is invalid or closed, and so the operation could not be performed. |
| Deno.errors.BrokenPipe | Raised when trying to write to a resource and a broken pipe error occurs. This can happen when trying to write directly to |
| Deno.errors.Busy | Raised when the underlying IO resource is not available because it is being awaited on in another block of code. |
| Deno.errors.ConnectionAborted | Raised when the underlying operating system reports an |
| Deno.errors.ConnectionRefused | Raised when the underlying operating system reports that a connection to a resource is refused. |
| Deno.errors.ConnectionReset | Raised when the underlying operating system reports that a connection has been reset. With network servers, it can be a normal occurrence where a client will abort a connection instead of properly shutting it down. |
| Deno.errors.Http | Raised in situations where when attempting to load a dynamic import, too many redirects were encountered. |
| Deno.errors.Interrupted | Raised when the underlying operating system reports an |
| Deno.errors.InvalidData | Raised when an operation to returns data that is invalid for the operation being performed. |
| Deno.errors.NotConnected | Raised when the underlying operating system reports an |
| Deno.errors.NotFound | Raised when the underlying operating system indicates that the file was not found. |
| Deno.errors.NotSupported | Raised when the underlying Deno API is asked to perform a function that is not currently supported. |
| Deno.errors.PermissionDenied | Raised when the underlying operating system indicates the current user which the Deno process is running under does not have the appropriate permissions to a file or resource, or the user did not provide required |
| Deno.errors.TimedOut | Raised when the underlying operating system reports that an I/O operation has timed out ( |
| Deno.errors.UnexpectedEof | Raised when attempting to read bytes from a resource, but the EOF was unexpectedly encountered. |
| Deno.errors.WriteZero | Raised when expecting to write to a IO buffer resulted in zero bytes being written. |
| Deno.FsFile | The Deno abstraction for reading and writing files. |
| Deno.Permissions | |
| Deno.PermissionStatus | |
| Deno.Process | Represents an instance of a sub process that is returned from |
| DOMException | |
| ErrorEvent | |
| Event | An event which takes place in the DOM. |
| EventTarget | EventTarget is a DOM interface implemented by objects that can receive events and may have listeners for them. |
| File | Provides information about files and allows JavaScript in a web page to access their content. |
| GPU | |
| GPUAdapter | |
| GPUAdapterInfo | |
| GPUBindGroup | |
| GPUBindGroupLayout | |
| GPUBuffer | |
| GPUBufferUsage | |
| GPUColorWrite | |
| GPUCommandBuffer | |
| GPUCommandEncoder | |
| GPUComputePassEncoder | |
| GPUComputePipeline | |
| GPUDevice | |
| GPUError | |
| GPUMapMode | |
| GPUOutOfMemoryError | |
| GPUPipelineLayout | |
| GPUQuerySet | |
| GPUQueue | |
| GPURenderBundle | |
| GPURenderBundleEncoder | |
| GPURenderPassEncoder | |
| GPURenderPipeline | |
| GPUSampler | |
| GPUShaderModule | |
| GPUShaderStage | |
| GPUSupportedFeatures | |
| GPUSupportedLimits | |
| GPUTexture | |
| GPUTextureUsage | |
| GPUTextureView | |
| GPUUncapturedErrorEvent | |
| GPUValidationError | |
| Headers | |
| Location | The location (URL) of the object it is linked to. Changes done on it are reflected on the object it relates to. Accessible via |
| MessageChannel | The MessageChannel interface of the Channel Messaging API allows us to create a new message channel and send data through it via its two MessagePort properties. |
| MessageEvent | |
| MessagePort | The MessagePort interface of the Channel Messaging API represents one of the two ports of a MessageChannel, allowing messages to be sent from one port and listening out for them arriving at the other. |
| Navigator | |
| Performance | |
| PerformanceEntry | Encapsulates a single performance metric that is part of the performance timeline. A performance entry can be directly created by making a performance mark or measure (for example by calling the |
| PerformanceMark |
|
| PerformanceMeasure |
|
| ProgressEvent | Events measuring progress of an underlying process, like an HTTP request (for an XMLHttpRequest, or the loading of the underlying resource of an , , , or ). |
| PromiseRejectionEvent | |
| Request | This Fetch API interface represents a resource request. |
| Response | This Fetch API interface represents the response to a request. |
| URL | The URL interface represents an object providing static methods used for creating object URLs. |
| URLPattern | The URLPattern API provides a web platform primitive for matching URLs based on a convenient pattern syntax. |
| URLSearchParams | |
| WebAssembly.CompileError | The |
| WebAssembly.Global | A |
| WebAssembly.Instance | A |
| WebAssembly.LinkError | The |
| WebAssembly.Memory | The |
| WebAssembly.Module | A |
| WebAssembly.RuntimeError | The |
| WebAssembly.Table | The |
| WebSocket | Provides the API for creating and managing a WebSocket connection to a server, as well as for sending and receiving data on the connection. |
| Window | |
| Worker |
Enums
| Deno.SeekMode | A enum which defines the seek mode for IO related APIs that support seeking. |
Variables
| AbortSignal | |
| BroadcastChannel | |
| ByteLengthQueuingStrategy | |
| Cache | |
| caches | |
| CacheStorage | |
| console | |
| CountQueuingStrategy | |
| crypto | |
| CryptoKey | |
| CryptoKeyPair | |
| Deno.args | Returns the script arguments to the program. If for example we run a program: |
| Deno.build | Build related information. |
| Deno.customInspect deprecated | A symbol which can be used as a key for a custom method which will be called when |
| Deno.env | An interface containing methods to interact with the process environment variables. |
| Deno.File deprecated | The Deno abstraction for reading and writing files. |
| Deno.mainModule | The URL of the entrypoint module entered from the command-line. |
| Deno.noColor | Reflects the |
| Deno.permissions | Deno's permission management API. |
| Deno.pid | The current process ID of this instance of the Deno CLI. |
| Deno.ppid | The process ID of parent process of this instance of the Deno CLI. |
| Deno.stderr | A reference to |
| Deno.stdin | A reference to |
| Deno.stdout | A reference to |
| Deno.version | Version related information. |
| FileReader | |
| FormData | |
| localStorage | |
| location | |
| navigator | |
| onbeforeunload | |
| onerror | |
| onload | |
| onunhandledrejection | |
| onunload | |
| performance | |
| ReadableByteStreamController | |
| ReadableStream | |
| ReadableStreamDefaultController | |
| ReadableStreamDefaultReader | |
| ReadableStreamReader | |
| self | |
| sessionStorage | |
| Storage | |
| SubtleCrypto | |
| TextDecoder | |
| TextDecoderStream | |
| TextEncoder | |
| TextEncoderStream | |
| TransformStream | |
| TransformStreamDefaultController | |
| window | |
| WritableStream | |
| WritableStreamDefaultController | |
| WritableStreamDefaultWriter |
Functions
| addEventListener | Registers an event listener in the global scope, which will be called synchronously whenever the event |
| alert | Shows the given message and waits for the enter key pressed. |
| atob | Decodes a string of data which has been encoded using base-64 encoding. |
| btoa | Creates a base-64 ASCII encoded string from the input string. |
| clearInterval | Cancels a timed, repeating action which was previously started by a call to |
| clearTimeout | Cancels a scheduled action initiated by |
| confirm | Shows the given message and waits for the answer. Returns the user's answer as boolean. |
| Deno.addSignalListener | Registers the given function as a listener of the given signal event. |
| Deno.chdir | Change the current working directory to the specified path. |
| Deno.chmod | Changes the permission of a specific file/directory of specified path. Ignores the process's umask. |
| Deno.chmodSync | Synchronously changes the permission of a specific file/directory of specified path. Ignores the process's umask. |
| Deno.chown | Change owner of a regular file or directory. |
| Deno.chownSync | Synchronously change owner of a regular file or directory. |
| Deno.close | Close the given resource ID ( |
| Deno.connect | Connects to the hostname (default is "127.0.0.1") and port on the named transport (default is "tcp"), and resolves to the connection ( |
| Deno.connectTls | Establishes a secure connection over TLS (transport layer security) using an optional cert file, hostname (default is "127.0.0.1") and port. The cert file is optional and if not included Mozilla's root certificates will be used (see also https://github.com/ctz/webpki-roots for specifics) |
| Deno.copy deprecated | Copies from |
| Deno.copyFile | Copies the contents and permissions of one file to another specified path, by default creating a new file if needed, else overwriting. Fails if target path is a directory or is unwritable. |
| Deno.copyFileSync | Synchronously copies the contents and permissions of one file to another specified path, by default creating a new file if needed, else overwriting. Fails if target path is a directory or is unwritable. |
| Deno.create | Creates a file if none exists or truncates an existing file and resolves to an instance of |
| Deno.createSync | Creates a file if none exists or truncates an existing file and returns an instance of |
| Deno.cwd | Return a string representing the current working directory. |
| Deno.execPath | Returns the path to the current deno executable. |
| Deno.exit | Exit the Deno process with optional exit code. |
| Deno.fdatasync | Flushes any pending data operations of the given file stream to disk. |
| Deno.fdatasyncSync | Synchronously flushes any pending data operations of the given file stream to disk. |
| Deno.fstat | Returns a |
| Deno.fstatSync | Synchronously returns a |
| Deno.fsync | Flushes any pending data and metadata operations of the given file stream to disk. |
| Deno.fsyncSync | Synchronously flushes any pending data and metadata operations of the given file stream to disk. |
| Deno.ftruncate | Truncates or extends the specified file stream, to reach the specified |
| Deno.ftruncateSync | Synchronously truncates or extends the specified file stream, to reach the specified |
| Deno.hostname | Get the |
| Deno.inspect | Converts the input into a string that has the same format as printed by |
| Deno.isatty | Check if a given resource id ( |
| Deno.iter deprecated | Turns a Reader, |
| Deno.iterSync deprecated | Turns a ReaderSync, |
| Deno.kill | Send a signal to process under given |
| Deno.link | Creates |
| Deno.linkSync | Synchronously creates |
| Deno.listen | Listen announces on the local transport address. |
| Deno.listenTls | Listen announces on the local transport address over TLS (transport layer security). |
| Deno.lstat | Resolves to a |
| Deno.lstatSync | Synchronously returns a |
| Deno.makeTempDir | Creates a new temporary directory in the default directory for temporary files, unless |
| Deno.makeTempDirSync | Synchronously creates a new temporary directory in the default directory for temporary files, unless |
| Deno.makeTempFile | Creates a new temporary file in the default directory for temporary files, unless |
| Deno.makeTempFileSync | Synchronously creates a new temporary file in the default directory for temporary files, unless |
| Deno.memoryUsage | Returns an object describing the memory usage of the Deno process and the V8 subsystem measured in bytes. |
| Deno.metrics | Receive metrics from the privileged side of Deno. This is primarily used in the development of Deno. Ops, also called bindings, are the go-between between Deno JavaScript sandbox and the rest of Deno. |
| Deno.mkdir | Creates a new directory with the specified path. |
| Deno.mkdirSync | Synchronously creates a new directory with the specified path. |
| Deno.open | Open a file and resolve to an instance of |
| Deno.openSync | Synchronously open a file and return an instance of |
| Deno.read | Read from a resource ID ( |
| Deno.readAll deprecated | Read Reader |
| Deno.readAllSync deprecated | Synchronously reads Reader |
| Deno.readDir | Reads the directory given by |
| Deno.readDirSync | Synchronously reads the directory given by |
| Deno.readFile | Reads and resolves to the entire contents of a file as an array of bytes. |
| Deno.readFileSync | Synchronously reads and returns the entire contents of a file as an array of bytes. |
| Deno.readLink | Resolves to the full path destination of the named symbolic link. |
| Deno.readLinkSync | Synchronously returns the full path destination of the named symbolic link. |
| Deno.readSync | Synchronously read from a resource ID ( |
| Deno.readTextFile | Asynchronously reads and returns the entire contents of a file as an UTF-8 decoded string. Reading a directory throws an error. |
| Deno.readTextFileSync | Synchronously reads and returns the entire contents of a file as an UTF-8 decoded string. Reading a directory throws an error. |
| Deno.realPath | Resolves to the absolute normalized path, with symbolic links resolved. |
| Deno.realPathSync | Synchronously returns absolute normalized path, with symbolic links resolved. |
| Deno.refTimer | Make the timer of the given |
| Deno.remove | Removes the named file or directory. |
| Deno.removeSignalListener | Removes the given signal listener that has been registered with |
| Deno.removeSync | Synchronously removes the named file or directory. |
| Deno.rename | Renames (moves) |
| Deno.renameSync | Synchronously renames (moves) |
| Deno.resolveDns | |
| Deno.resources | Returns a map of open resource IDs (rid) along with their string representations. This is an internal API and as such resource representation has |
| Deno.run | Spawns new subprocess. RunOptions must contain at a minimum the |
| Deno.seek | Seek a resource ID ( |
| Deno.seekSync | Synchronously seek a resource ID ( |
| Deno.serveHttp | Services HTTP requests given a TCP or TLS socket. |
| Deno.shutdown | Shutdown socket send operations. |
| Deno.startTls | Start TLS handshake from an existing connection using an optional list of CA certificates, and hostname (default is "127.0.0.1"). Specifying CA certs is optional. By default the configured root certificates are used. Using this function requires that the other end of the connection is prepared for a TLS handshake. |
| Deno.stat | Resolves to a |
| Deno.statSync | Synchronously returns a |
| Deno.symlink | Creates |
| Deno.symlinkSync | Creates |
| Deno.test | Register a test which will be run when |
| Deno.truncate | Truncates (or extends) the specified file, to reach the specified |
| Deno.truncateSync | Synchronously truncates (or extends) the specified file, to reach the specified |
| Deno.unrefTimer | Make the timer of the given |
| Deno.upgradeWebSocket | Used to upgrade an incoming HTTP request to a WebSocket. |
| Deno.watchFs | Watch for file system events against one or more |
| Deno.write | Write to the resource ID ( |
| Deno.writeAll deprecated | Write all the content of the array buffer ( |
| Deno.writeAllSync deprecated | Synchronously write all the content of the array buffer ( |
| Deno.writeFile | Write |
| Deno.writeFileSync | Synchronously write |
| Deno.writeSync | Synchronously write to the resource ID ( |
| Deno.writeTextFile | Write string |
| Deno.writeTextFileSync | Synchronously write string |
| dispatchEvent | Dispatches an event in the global scope, synchronously invoking any registered event listeners for this event in the appropriate order. Returns false if event is cancelable and at least one of the event handlers which handled this event called Event.preventDefault(). Otherwise it returns true. |
| fetch | Fetch a resource from the network. It returns a |
| prompt | Shows the given message and waits for the user's input. Returns the user's input as string. |
| queueMicrotask | A microtask is a short function which is executed after the function or module which created it exits and only if the JavaScript execution stack is empty, but before returning control to the event loop being used to drive the script's execution environment. This event loop may be either the main event loop or the event loop driving a web worker. |
| removeEventListener | Remove a previously registered event listener from the global scope |
| reportError | Dispatch an uncaught exception. Similar to a synchronous version of: The error can not be caught with a |