Spec-Zone.ru › Deno 2

Uncategorized


namespace Deno

The global namespace where Deno specific, non-standard APIs are located.

Classes

Deno.AtomicOperation

An operation on a Deno.Kv that can be performed atomically. Atomic operations do not auto-commit, and must be committed explicitly by calling the commit method.

  • check
  • commit
  • delete
  • enqueue
  • max
  • min
  • mutate
  • set
  • sum
Deno.ChildProcess

The interface for handling a child process returned from Deno.Command.spawn.

  • kill
  • output
  • pid
  • ref
  • status
  • stderr
  • stdin
  • stdout
  • unref
Deno.Command

Create a child process.

  • output
  • outputSync
  • spawn
Deno.FsFile

The Deno abstraction for reading and writing files.

  • close
  • isTerminal
  • lock
  • lockSync
  • read
  • readSync
  • readable
  • seek
  • seekSync
  • setRaw
  • stat
  • statSync
  • sync
  • syncData
  • syncDataSync
  • syncSync
  • truncate
  • truncateSync
  • tryLock
  • tryLockSync
  • unlock
  • unlockSync
  • utime
  • utimeSync
  • writable
  • write
  • writeSync
Deno.HttpClient

A custom HttpClient for use with fetch function. This is designed to allow custom certificates or proxies to be used with fetch().

  • close
Deno.Kv

A key-value database that can be used to store and retrieve data.

  • atomic
  • close
  • commitVersionstamp
  • delete
  • enqueue
  • get
  • getMany
  • list
  • listenQueue
  • set
  • watch
Deno.KvListIterator

An iterator over a range of data entries in a Deno.Kv.

  • cursor
  • next
Deno.KvU64

Wrapper type for 64-bit unsigned integers for use as values in a Deno.Kv.

  • value
Deno.Permissions

Deno's permission management API.

  • query
  • querySync
  • request
  • requestSync
  • revoke
  • revokeSync
Deno.PermissionStatus

An EventTarget returned from the Deno.permissions API which can provide updates to any state changes of the permission.

  • addEventListener
  • onchange
  • partial
  • removeEventListener
  • state
Deno.QuicEndpoint
No documentation available
  • addr
  • close
  • listen
Deno.UnsafeCallback

An unsafe function pointer for passing JavaScript functions as C function pointers to foreign function calls.

  • callback
  • close
  • definition
  • pointer
  • ref
  • threadSafe
  • unref
Deno.UnsafeFnPointer

An unsafe pointer to a function, for calling functions that are not present as symbols.

  • call
  • definition
  • pointer
Deno.UnsafePointer

A collection of static functions for interacting with pointer objects.

  • create
  • equals
  • of
  • offset
  • value
Deno.UnsafePointerView

An unsafe pointer view to a memory location as specified by the pointer value. The UnsafePointerView API follows the standard built in interface DataView for accessing the underlying types at an memory location (numbers, strings and raw bytes).

  • copyInto
  • getArrayBuffer
  • getBigInt64
  • getBigUint64
  • getBool
  • getCString
  • getFloat32
  • getFloat64
  • getInt16
  • getInt32
  • getInt8
  • getPointer
  • getUint16
  • getUint32
  • getUint8
  • pointer
Deno.UnsafeWindowSurface

Creates a presentable WebGPU surface from given window and display handles.

  • getContext
  • height
  • present
  • width

Enums

Deno.SeekMode

A enum which defines the seek mode for IO related APIs that support seeking.

Functions

Deno.addSignalListener

Registers the given function as a listener of the given signal event.

Deno.bench

Register a benchmark test which will be run when deno bench is used on the command line and the containing module looks like a bench module.

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.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 (Conn).

Deno.connectQuic

Establishes a secure connection over QUIC using a hostname 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.connectTls

Establishes a secure connection over TLS (transport layer security) using an optional list of CA certs, hostname (default is "127.0.0.1") and port.

Deno.consoleSize

Gets the size of the console as columns/rows.

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.FsFile.

Deno.createHttpClient

Create a custom HttpClient to use with fetch. This is an extension of the web platform Fetch API which allows Deno to use custom TLS CA certificates and connect via a proxy while using fetch().

Deno.createSync

Creates a file if none exists or truncates an existing file and returns an instance of Deno.FsFile.

Deno.cron

Create a cron job that will periodically execute the provided handler callback based on the specified schedule.

Deno.cwd

Return a string representing the current working directory.

Deno.dlopen

Opens an external dynamic library and registers symbols, making foreign functions available to be called.

Deno.execPath

Returns the path to the current deno executable.

Deno.exit

Exit the Deno process with optional exit code.

Deno.gid

Returns the group id of the process on POSIX platforms. Returns null on windows.

Deno.hostname

Get the hostname of the machine the Deno process is running on.

Deno.inspect

Converts the input into a string that has the same format as printed by console.log().

Deno.kill

Send a signal to process under given pid. The value and meaning of the signal to the process is operating system and process dependant. Signal provides the most common signals. Default signal is "SIGTERM".

Deno.link

Creates newpath as a hard link to oldpath.

Deno.linkSync

Synchronously creates newpath as a hard link to oldpath.

Deno.listen

Listen announces on the local transport address.

Deno.listenDatagram

Listen announces on the local transport address.

Deno.listenTls

Listen announces on the local transport address over TLS (transport layer security).

Deno.loadavg

Returns an array containing the 1, 5, and 15 minute load averages. The load average is a measure of CPU and IO utilization of the last one, five, and 15 minute periods expressed as a fractional number. Zero means there is no load. On Windows, the three values are always the same and represent the current load, not the 1, 5 and 15 minute load averages.

Deno.lstat

Resolves to a Deno.FileInfo for the specified path. If path is a symlink, information for the symlink will be returned instead of what it points to.

Deno.lstatSync

Synchronously returns a Deno.FileInfo for the specified path. If path is a symlink, information for the symlink will be returned instead of what it points to.

Deno.makeTempDir

Creates a new temporary directory in the default directory for temporary files, unless dir is specified. Other optional options include prefixing and suffixing the directory name with prefix and suffix respectively.

Deno.makeTempDirSync

Synchronously creates a new temporary directory in the default directory for temporary files, unless dir is specified. Other optional options include prefixing and suffixing the directory name with prefix and suffix respectively.

Deno.makeTempFile

Creates a new temporary file in the default directory for temporary files, unless dir is specified.

Deno.makeTempFileSync

Synchronously creates a new temporary file in the default directory for temporary files, unless dir is specified.

Deno.memoryUsage

Returns an object describing the memory usage of the Deno process and the V8 subsystem measured in bytes.

Deno.mkdir

Creates a new directory with the specified path.

Deno.mkdirSync

Synchronously creates a new directory with the specified path.

Deno.networkInterfaces

Returns an array of the network interface information.

Deno.open

Open a file and resolve to an instance of Deno.FsFile. The file does not need to previously exist if using the create or createNew open options. The caller may have the resulting file automatically closed by the runtime once it's out of scope by declaring the file variable with the using keyword.

Deno.openKv

Open a new Deno.Kv connection to persist data.

Deno.openSync

Synchronously open a file and return an instance of Deno.FsFile. The file does not need to previously exist if using the create or createNew open options. The caller may have the resulting file automatically closed by the runtime once it's out of scope by declaring the file variable with the using keyword.

Deno.osRelease

Returns the release version of the Operating System.

Deno.osUptime

Returns the Operating System uptime in number of seconds.

Deno.readDir

Reads the directory given by path and returns an async iterable of Deno.DirEntry. The order of entries is not guaranteed.

Deno.readDirSync

Synchronously reads the directory given by path and returns an iterable of Deno.DirEntry. The order of entries is not guaranteed.

Deno.readFile

Reads and resolves to the entire contents of a file as an array of bytes. TextDecoder can be used to transform the bytes to string if required. Rejects with an error when reading a directory.

Deno.readFileSync

Synchronously reads and returns the entire contents of a file as an array of bytes. TextDecoder can be used to transform the bytes to string if required. Throws an error when reading a directory.

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.readTextFile

Asynchronously reads and returns the entire contents of a file as an UTF-8 decoded string.

Deno.readTextFileSync

Synchronously reads and returns the entire contents of a file as an UTF-8 decoded string.

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 id block the event loop from finishing.

Deno.remove

Removes the named file or directory.

Deno.removeSignalListener

Removes the given signal listener that has been registered with Deno.addSignalListener.

Deno.removeSync

Synchronously removes the named file or directory.

Deno.rename

Renames (moves) oldpath to newpath. Paths may be files or directories. If newpath already exists and is not a directory, rename() replaces it. OS-specific restrictions may apply when oldpath and newpath are in different directories.

Deno.renameSync

Synchronously renames (moves) oldpath to newpath. Paths may be files or directories. If newpath already exists and is not a directory, renameSync() replaces it. OS-specific restrictions may apply when oldpath and newpath are in different directories.

Deno.resolveDns

Performs DNS resolution against the given query, returning resolved records.

Deno.serve

Serves HTTP requests with the given handler.

Deno.spawn

Spawns a new subprocess, returning a Deno.ChildProcess handle.

Deno.spawnAndWait

Spawns a subprocess, waits for it to finish, and returns the output.

Deno.spawnAndWaitSync

Synchronously spawns a subprocess, waits for it to finish, and returns the output.

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.FileInfo for the specified path. Will always follow symlinks.

Deno.statSync

Synchronously returns a Deno.FileInfo for the specified path. Will always follow symlinks.

Deno.symlink

Creates newpath as a symbolic link to oldpath.

Deno.symlinkSync

Creates newpath as a symbolic link to oldpath.

Deno.systemMemoryInfo

Displays the total amount of free and used physical and swap memory in the system, as well as the buffers and caches used by the kernel.

Deno.truncate

Truncates (or extends) the specified file, to reach the specified len. If len is not specified then the entire file contents are truncated.

Deno.truncateSync

Synchronously truncates (or extends) the specified file, to reach the specified len. If len is not specified then the entire file contents are truncated.

Deno.uid

Returns the user id of the process on POSIX platforms. Returns null on Windows.

Deno.umask

Retrieve the process umask. If mask is provided, sets the process umask. This call always returns what the umask was before the call.

Deno.unrefTimer

Make the timer of the given id not block the event loop from finishing.

Deno.upgradeWebSocket

Upgrade an incoming HTTP request to a WebSocket.

Deno.upgradeWebTransport

Upgrade a QUIC connection into a WebTransport instance.

Deno.utime

Changes the access (atime) and modification (mtime) times of a file system object referenced by path. Given times are either in seconds (UNIX epoch time) or as Date objects.

Deno.utimeSync

Synchronously changes the access (atime) and modification (mtime) times of a file system object referenced by path. Given times are either in seconds (UNIX epoch time) or as Date objects.

Deno.watchFs

Watch for file system events against one or more paths, which can be files or directories. These paths must exist already. One user action (e.g. touch test.file) can generate multiple file system events. Likewise, one user action can result in multiple file paths in one event (e.g. mv old_name.txt new_name.txt).

Deno.writeFile

Write data to the given path, by default creating a new file if needed, else overwriting.

Deno.writeFileSync

Synchronously write data to the given path, by default creating a new file if needed, else overwriting.

Deno.writeTextFile

Write string data to the given path, by default creating a new file if needed, else overwriting.

Deno.writeTextFileSync

Synchronously write string data to the given path, by default creating a new file if needed, else overwriting.

Interfaces

Deno.AtomicCheck

A check to perform as part of a Deno.AtomicOperation. The check will fail if the versionstamp for the key-value pair in the KV store does not match the given versionstamp. A check with a null versionstamp checks that the key-value pair does not currently exist in the KV store.

  • key
  • versionstamp
Deno.BasicAuth

Basic authentication credentials to be used with a Deno.Proxy server when specifying Deno.CreateHttpClientOptions.

  • password
  • username
Deno.BenchContext

Context that is passed to a benchmarked function. The instance is shared between iterations of the benchmark. Its methods can be used for example to override of the measured portion of the function.

  • end
  • name
  • origin
  • start
Deno.BenchDefinition

The interface for defining a benchmark test using Deno.bench.

  • baseline
  • fn
  • group
  • ignore
  • n
  • name
  • only
  • permissions
  • sanitizeExit
  • warmup
Deno.CaaRecord

If Deno.resolveDns is called with "CAA" record type specified, it will resolve with an array of objects with this interface.

  • critical
  • tag
  • value
Deno.CommandOptions

Options which can be set when calling Deno.Command.

  • args
  • clearEnv
  • cwd
  • detached
  • env
  • gid
  • signal
  • stderr
  • stdin
  • stdout
  • uid
  • windowsRawArguments
Deno.CommandOutput

The interface returned from calling Deno.Command.output or Deno.Command.outputSync which represents the result of spawning the child process.

  • stderr
  • stdout
Deno.CommandStatus
No documentation available
  • code
  • signal
  • success
Deno.Conn

A generic stream-oriented network connection that can be read from and written to.

  • close
  • closeWrite
  • localAddr
  • read
  • readable
  • ref
  • remoteAddr
  • unref
  • writable
  • write
Deno.ConnectOptions

Options which can be set when connecting via Deno.connect.

  • autoSelectFamily
  • autoSelectFamilyAttemptDelay
  • hostname
  • port
  • signal
  • transport
Deno.ConnectQuicOptions
No documentation available
  • alpnProtocols
  • caCerts
  • endpoint
  • hostname
  • port
  • serverName
  • zeroRtt
Deno.ConnectTlsOptions

Options which can be set when establishing a TLS connection via Deno.connectTls.

  • alpnProtocols
  • autoSelectFamily
  • autoSelectFamilyAttemptDelay
  • caCerts
  • hostname
  • port
  • unsafelyDisableHostnameVerification
Deno.CreateHttpClientOptions

The options used when creating a Deno.HttpClient.

  • allowHost
  • caCerts
  • http1
  • http2
  • http2MaxHeaderListSize
  • localAddress
  • poolIdleTimeout
  • poolMaxIdlePerHost
  • proxy
Deno.CronSchedule

CronSchedule is the interface used for JSON format cron schedule.

  • dayOfMonth
  • dayOfWeek
  • hour
  • minute
  • month
Deno.DatagramConn

A generic transport listener for message-oriented protocols.

  • addr
  • close
  • joinMulticastV4
  • joinMulticastV6
  • receive
  • send
Deno.DenoTest
No documentation available
  • afterAll
  • afterEach
  • beforeAll
  • beforeEach
  • each
  • ignore
  • only
  • sanitizer
Deno.DirEntry

Information about a directory entry returned from Deno.readDir and Deno.readDirSync.

  • isDirectory
  • isFile
  • isSymlink
  • name
Deno.DynamicLibrary

A dynamic library resource. Use Deno.dlopen to load a dynamic library and return this interface.

  • close
  • symbols
Deno.Env

An interface containing methods to interact with the process environment variables.

  • delete
  • get
  • has
  • set
  • toObject
Deno.EnvPermissionDescriptor

The permission descriptor for the allow-env and deny-env permissions, which controls access to being able to read and write to the process environment variables as well as access other information about the environment. The option variable allows scoping the permission to a specific environment variable.

  • name
  • variable
Deno.FfiPermissionDescriptor

The permission descriptor for the allow-ffi and deny-ffi permissions, which controls access to loading foreign code and interfacing with it via the Foreign Function Interface API available in Deno. The option path allows scoping the permission to a specific path on the host.

  • name
  • path
Deno.FileInfo

Provides information about a file and is returned by Deno.stat, Deno.lstat, Deno.statSync, and Deno.lstatSync or from calling stat() and statSync() on an Deno.FsFile instance.

  • atime
  • birthtime
  • blksize
  • blocks
  • ctime
  • dev
  • gid
  • ino
  • isBlockDevice
  • isCharDevice
  • isDirectory
  • isFifo
  • isFile
  • isSocket
  • isSymlink
  • mode
  • mtime
  • nlink
  • rdev
  • size
  • uid
Deno.ForeignFunction

The interface for a foreign function as defined by its parameter and result types.

  • name
  • nonblocking
  • optional
  • parameters
  • result
Deno.ForeignLibraryInterface

A foreign library interface descriptor.

Deno.ForeignStatic
No documentation available
  • name
  • optional
  • type
Deno.FsEvent

Represents a unique file system event yielded by a Deno.FsWatcher.

  • flag
  • kind
  • paths
Deno.FsWatcher

Returned by Deno.watchFs. It is an async iterator yielding up system events. To stop watching the file system by calling .close() method.

  • close
  • return
Deno.HttpServer

An instance of the server created using Deno.serve() API.

  • addr
  • finished
  • ref
  • shutdown
  • unref
Deno.ImportPermissionDescriptor

The permission descriptor for the allow-import and deny-import permissions, which controls access to importing from remote hosts via the network. The option host allows scoping the permission for outbound connection to a specific host and port.

  • host
  • name
Deno.InspectOptions

Option which can be specified when performing Deno.inspect.

  • breakLength
  • colors
  • compact
  • depth
  • escapeSequences
  • getters
  • iterableLimit
  • showHidden
  • showProxy
  • sorted
  • strAbbreviateSize
  • trailingComma
Deno.KvCommitError
No documentation available
  • ok
Deno.KvCommitResult
No documentation available
  • ok
  • versionstamp
Deno.KvEntry

A versioned pair of key and value in a Deno.Kv.

  • key
  • value
  • versionstamp
Deno.KvListOptions

Options for listing key-value pairs in a Deno.Kv.

  • batchSize
  • consistency
  • cursor
  • limit
  • reverse
Deno.Listener

A generic network listener for stream-oriented protocols.

  • accept
  • addr
  • close
  • ref
  • unref
Deno.ListenOptions

Options which can be set when opening a listener via Deno.listen.

  • hostname
  • port
  • tcpBacklog
Deno.ListenTlsOptions

Options which can be set when opening a TLS listener via Deno.listenTls.

  • alpnProtocols
  • transport
Deno.MakeTempOptions

Options which can be set when using Deno.makeTempDir, Deno.makeTempDirSync, Deno.makeTempFile, and Deno.makeTempFileSync.

  • dir
  • prefix
  • suffix
Deno.MemoryUsage
No documentation available
  • external
  • heapTotal
  • heapUsed
  • rss
Deno.MkdirOptions

Options which can be set when using Deno.mkdir and Deno.mkdirSync.

  • mode
  • recursive
Deno.MulticastV4Membership

Represents membership of a IPv4 multicast group.

  • leave
  • setLoopback
  • setTTL
Deno.MulticastV6Membership

Represents membership of a IPv6 multicast group.

  • leave
  • setLoopback
Deno.MxRecord

If Deno.resolveDns is called with "MX" record type specified, it will return an array of objects with this interface.

  • exchange
  • preference
Deno.NaptrRecord

If Deno.resolveDns is called with "NAPTR" record type specified, it will return an array of objects with this interface.

  • flags
  • order
  • preference
  • regexp
  • replacement
  • services
Deno.NativeStructType

The native struct type for interfacing with foreign functions.

  • struct
Deno.NetAddr

The address of a network connection or listener using an IP-based transport.

  • hostname
  • port
  • transport
Deno.NetPermissionDescriptor

The permission descriptor for the allow-net and deny-net permissions, which controls access to opening network ports and connecting to remote hosts via the network. The option host allows scoping the permission for outbound connection to a specific host and port.

  • host
  • name
Deno.NetworkInterfaceInfo

The information for a network interface returned from a call to Deno.networkInterfaces.

  • address
  • cidr
  • family
  • mac
  • name
  • netmask
  • scopeid
Deno.OpenOptions

Options which can be set when doing Deno.open and Deno.openSync.

  • append
  • create
  • createNew
  • mode
  • read
  • truncate
  • write
Deno.PermissionOptionsObject

A set of options which can define the permissions within a test or worker context at a highly specific level.

  • env
  • ffi
  • import
  • net
  • read
  • run
  • sys
  • write
Deno.PermissionStatusEventMap

The interface which defines what event types are supported by PermissionStatus instances.

  • change
Deno.PointerObject

A non-null pointer, represented as an object at runtime. The object's prototype is null and cannot be changed. The object cannot be assigned to either and is thus entirely read-only.

  • brand
Deno.QuicAcceptOptions
No documentation available
  • alpnProtocols
  • zeroRtt
Deno.QuicBidirectionalStream
No documentation available
  • readable
  • writable
Deno.QuicCloseInfo
No documentation available
  • closeCode
  • reason
Deno.QuicConn
No documentation available
  • close
  • closed
  • createBidirectionalStream
  • createUnidirectionalStream
  • endpoint
  • handshake
  • incomingBidirectionalStreams
  • incomingUnidirectionalStreams
  • maxDatagramSize
  • protocol
  • readDatagram
  • remoteAddr
  • sendDatagram
  • serverName
Deno.QuicEndpointOptions
No documentation available
  • hostname
  • port
Deno.QuicIncoming

An incoming connection for which the server has not yet begun its part of the handshake.

  • accept
  • ignore
  • localIp
  • refuse
  • remoteAddr
  • remoteAddressValidated
Deno.QuicListener

Specialized listener that accepts QUIC connections.

  • accept
  • endpoint
  • incoming
  • stop
Deno.QuicListenOptions
No documentation available
  • alpnProtocols
  • cert
  • key
Deno.QuicReceiveStream
No documentation available
  • id
Deno.QuicSendStream
No documentation available
  • id
  • sendOrder
Deno.QuicSendStreamOptions
No documentation available
  • sendOrder
  • waitUntilAvailable
Deno.QuicServerTransportOptions
No documentation available
  • preferredAddressV4
  • preferredAddressV6
Deno.QuicTransportOptions
No documentation available
  • congestionControl
  • keepAliveInterval
  • maxConcurrentBidirectionalStreams
  • maxConcurrentUnidirectionalStreams
  • maxIdleTimeout
Deno.ReadFileOptions

Options which can be set when using Deno.readFile or Deno.readFileSync.

  • signal
Deno.ReadPermissionDescriptor

The permission descriptor for the allow-read and deny-read permissions, which controls access to reading resources from the local host. The option path allows scoping the permission to a specific path (and if the path is a directory any sub paths).

  • name
  • path
Deno.RemoveOptions

Options which can be set when using Deno.remove and Deno.removeSync.

  • recursive
Deno.ResolveDnsOptions

Options which can be set when using Deno.resolveDns.

  • nameServer
  • signal
Deno.RunPermissionDescriptor

The permission descriptor for the allow-run and deny-run permissions, which controls access to what sub-processes can be executed by Deno. The option command allows scoping the permission to a specific executable.

  • command
  • name
Deno.ServeDefaultExport

Interface that module run with deno serve subcommand must conform to.

  • fetch
  • onListen
Deno.ServeHandlerInfo

Additional information for an HTTP request and its connection.

  • completed
  • remoteAddr
Deno.ServeInit
No documentation available
  • handler
Deno.ServeOptions

Options which can be set when calling Deno.serve.

  • automaticCompression
  • onError
  • onListen
  • signal
Deno.ServeTcpOptions

Options that can be passed to Deno.serve to create a server listening on a TCP port.

  • hostname
  • port
  • reusePort
  • tcpBacklog
  • transport
Deno.ServeUnixOptions

Options that can be passed to Deno.serve to create a server listening on a Unix domain socket.

  • path
  • transport
Deno.ServeVsockOptions

Options that can be passed to Deno.serve to create a server listening on a VSOCK socket.

  • cid
  • port
  • transport
Deno.SetRawOptions
No documentation available
  • cbreak
Deno.SoaRecord

If Deno.resolveDns is called with "SOA" record type specified, it will return an array of objects with this interface.

  • expire
  • minimum
  • mname
  • refresh
  • retry
  • rname
  • serial
Deno.SrvRecord

If Deno.resolveDns is called with "SRV" record type specified, it will return an array of objects with this interface.

  • port
  • priority
  • target
  • weight
Deno.StartTlsOptions

Options which can be set when upgrading an existing connection to TLS via Deno.startTls.

  • alpnProtocols
  • caCerts
  • hostname
  • unsafelyDisableHostnameVerification
Deno.SubprocessReadableStream

The interface for stdout and stderr streams for child process returned from Deno.Command.spawn.

  • arrayBuffer
  • bytes
  • json
  • text
Deno.SymlinkOptions

Options that can be used with symlink and symlinkSync.

  • type
Deno.SysPermissionDescriptor

The permission descriptor for the allow-sys and deny-sys permissions, which controls access to sensitive host system information, which malicious code might attempt to exploit. The option kind allows scoping the permission to a specific piece of information.

  • kind
  • name
Deno.SystemMemoryInfo

Information returned from a call to Deno.systemMemoryInfo.

  • available
  • buffers
  • cached
  • free
  • swapFree
  • swapTotal
  • total
Deno.TcpConn

A TCP stream connection.

  • setKeepAlive
  • setNoDelay
Deno.TcpListenOptions
No documentation available
  • reusePort
Deno.TestContext

Context that is passed to a testing function, which can be used to either gain information about the current test, or register additional test steps within the current test.

  • assertSnapshot
  • name
  • origin
  • parent
  • step
Deno.TestDefinition
No documentation available
  • fn
  • ignore
  • name
  • only
  • permissions
  • repeats
  • retry
  • sanitizeExit
  • sanitizeOps
  • sanitizeResources
  • timeout
Deno.TestEach

Register a parameterized group of tests. See DenoTest.each.

Deno.TestIgnore

Shorthand property for ignoring a particular test case. See DenoTest.ignore.

  • each
Deno.TestOnly

Shorthand property for focusing a particular test case. See DenoTest.only.

  • each
Deno.TestSnapshotOptions

Options which can be set when calling Deno.TestContext.assertSnapshot.

  • dir
  • msg
  • name
  • path
  • serializer
Deno.TestStepDefinition
No documentation available
  • fn
  • ignore
  • name
  • sanitizeExit
  • sanitizeOps
  • sanitizeResources
Deno.TlsCertifiedKeyPem

Provides certified key material from strings. The key material is provided in PEM-format (Privacy Enhanced Mail, https://www.rfc-editor.org/rfc/rfc1422) which can be identified by having -----BEGIN----- and -----END----- markers at the beginning and end of the strings. This type of key is not compatible with DER-format keys which are binary.

  • cert
  • key
  • keyFormat
Deno.TlsConn

A TLS-encrypted stream connection over an IP-based transport.

  • handshake
Deno.TlsHandshakeInfo

Information about a completed TLS handshake.

  • alpnProtocol
Deno.UdpListenOptions

Unstable options which can be set when opening a datagram listener via Deno.listenDatagram.

  • loopback
  • reuseAddress
Deno.UnixAddr

The address of a network connection or listener using a Unix domain socket.

  • path
  • transport
Deno.UnixConn

A Unix domain socket stream connection.

Deno.UnixConnectOptions

Options which can be set when connecting to a Unix domain socket via Deno.connect.

  • path
  • transport
Deno.UnixListenDatagramOptions

Unstable options which can be set when opening a unixpacket datagram listener via Deno.listenDatagram.

  • path
Deno.UnixListenOptions

Options which can be set when opening a Unix listener via Deno.listen or Deno.listenDatagram.

  • path
Deno.UnsafeCallbackDefinition

Definition of a unsafe callback function.

  • parameters
  • result
Deno.UpgradeWebSocketOptions

Options which can be set when performing a Deno.upgradeWebSocket upgrade of a Request

  • head
  • idleTimeout
  • protocol
  • socket
Deno.VsockAddr

The address of a network connection or listener using the VSOCK transport for communication between a virtual machine and its host.

  • cid
  • port
  • transport
Deno.VsockConn

A VSOCK stream connection.

Deno.VsockConnectOptions

Options which can be set when connecting over VSOCK via Deno.connect.

  • cid
  • port
  • transport
Deno.VsockListenOptions

Options which can be set when opening a VSOCK listener via Deno.listen.

  • cid
  • port
Deno.WebSocketUpgrade

The object that is returned from a Deno.upgradeWebSocket request.

  • response
  • socket
Deno.WriteFileOptions

Options for writing to a file.

  • append
  • create
  • createNew
  • mode
  • signal
Deno.WritePermissionDescriptor

The permission descriptor for the allow-write and deny-write permissions, which controls access to writing to resources from the local host. The option path allow scoping the permission to a specific path (and if the path is a directory any sub paths).

  • name
  • path

Namespaces

Deno.bundle

Bundle Typescript/Javascript code into a single file.

Deno.errors

A set of error constructors that are raised by Deno APIs.

Deno.jupyter

A namespace containing runtime APIs available in Jupyter notebooks.

Deno.lint
No documentation available
Deno.telemetry

APIs for working with the OpenTelemetry observability framework. Deno can export traces, metrics, and logs to OpenTelemetry compatible backends via the OTLP protocol.

Deno.webgpu

The webgpu namespace provides additional APIs that the WebGPU specification does not specify.

Type Aliases

Deno.Addr

The address of a network connection or listener, regardless of transport.

Deno.ConditionalAsync
No documentation available
Deno.CronScheduleExpression

CronScheduleExpression is used as the type of minute, hour, dayOfMonth, month, and dayOfWeek in CronSchedule.

Deno.FromForeignFunction
No documentation available
Deno.FromNativeParameterTypes
No documentation available
Deno.FromNativeResultType

Type conversion for foreign symbol return types.

Deno.FromNativeType

Type conversion for foreign symbol return types and unsafe callback parameters.

Deno.FsEventFlag

Additional information for FsEvent objects with the "other" kind.

Deno.KvConsistencyLevel

Consistency level of a KV operation.

Deno.KvEntryMaybe

An optional versioned pair of key and value in a Deno.Kv.

Deno.KvKey

A key to be persisted in a Deno.Kv. A key is a sequence of Deno.KvKeyParts.

Deno.KvKeyPart

A single part of a Deno.KvKey. Parts are ordered lexicographically, first by their type, and within a given type by their value.

Deno.KvListSelector

A selector that selects the range of data returned by a list operation on a Deno.Kv.

Deno.KvMutation

A mutation to a key in a Deno.Kv. A mutation is a combination of a key, a value, and a type. The type determines how the mutation is applied to the key.

Deno.NativeBigIntType

All BigInt number types for interfacing with foreign functions.

Deno.NativeBooleanType

The native boolean type for interfacing to foreign functions.

Deno.NativeBufferType

The native buffer type for interfacing to foreign functions.

Deno.NativeFunctionType

The native function type for interfacing with foreign functions.

Deno.NativeI16Enum
No documentation available
Deno.NativeI32Enum
No documentation available
Deno.NativeI8Enum
No documentation available
Deno.NativeNumberType

All plain number types for interfacing with foreign functions.

Deno.NativePointerType

The native pointer type for interfacing to foreign functions.

Deno.NativeResultType
No documentation available
Deno.NativeType

All supported types for interfacing with foreign functions.

Deno.NativeTypedFunction
No documentation available
Deno.NativeTypedPointer
No documentation available
Deno.NativeU16Enum
No documentation available
Deno.NativeU32Enum
No documentation available
Deno.NativeU8Enum
No documentation available
Deno.NativeVoidType

The native void type for interfacing with foreign functions.

Deno.PermissionDescriptor

Permission descriptors which define a permission and can be queried, requested, or revoked.

Deno.PermissionName

The name of a privileged feature which needs permission.

Deno.PermissionOptions

Options which define the permissions within a test or worker context.

Deno.PermissionState

The current status of the permission:

Deno.PointerValue

Pointers are represented either with a PointerObject object or a null if the pointer is null.

Deno.Proxy

The definition for alternative transports (or proxies) in Deno.CreateHttpClientOptions.

Deno.RecordType

The type of the resource record to resolve via DNS using Deno.resolveDns.

Deno.ServeHandler

A handler for HTTP requests. Consumes a request and returns a response.

Deno.Signal

Operating signals which can be listened for or sent to sub-processes. What signals and what their standard behaviors are OS dependent.

Deno.StaticForeignLibraryInterface

A utility type that infers a foreign library interface.

Deno.StaticForeignSymbol

A utility type that infers a foreign symbol.

Deno.StaticForeignSymbolReturnType
No documentation available
Deno.TcpListener

Specialized listener that accepts TCP connections.

Deno.TlsListener

Specialized listener that accepts TLS connections.

Deno.ToNativeParameterTypes

A utility type for conversion of parameter types of foreign functions.

Deno.ToNativeResultType

Type conversion for unsafe callback return types.

Deno.ToNativeType

Type conversion for foreign symbol parameters and unsafe callback return types.

Deno.UnixListener

Specialized listener that accepts Unix connections.

Deno.UnsafeCallbackFunction

An unsafe callback function.

Deno.VsockListener

Specialized listener that accepts VSOCK connections.

Variables

Deno.args

Returns the script arguments to the program.

Deno.brand
No documentation available
Deno.build

Information related to the build of the current Deno runtime.

  • arch
  • env
  • os
  • standalone
  • target
  • vendor
Deno.env

An interface containing methods to interact with the process environment variables.

Deno.exitCode

The exit code for the Deno process.

Deno.mainModule

The URL of the entrypoint module entered from the command-line. It requires read permission to the CWD.

Deno.noColor

Reflects the NO_COLOR environment variable at program start.

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 stderr which can be used to write directly to stderr. It implements the Deno specific Writer, WriterSync, and Closer interfaces as well as provides a WritableStream interface.

  • close
  • isTerminal
  • writable
  • write
  • writeSync
Deno.stdin

A reference to stdin which can be used to read directly from stdin.

  • close
  • isTerminal
  • read
  • readSync
  • readable
  • setRaw
Deno.stdout

A reference to stdout which can be used to write directly to stdout. It implements the Deno specific Writer, WriterSync, and Closer interfaces as well as provides a WritableStream interface.

  • close
  • isTerminal
  • writable
  • write
  • writeSync
Deno.test

Register a test which will be run when deno test is used on the command line and the containing module looks like a test module.

Deno.version

Version information related to the current Deno CLI runtime environment.

  • deno
  • typescript
  • v8

© 2018–2025 the Deno authors
Licensed under the MIT License.
https://docs.deno.com/api/deno/uncategorized

Spec-Zone.ru

Настройки Оффлайн Что нового Помощь О нас
Spec-Zone .ru
спецификации, руководства, описания, API