Skip to main content
Deno 2 is finally here ๐ŸŽ‰๏ธ
Learn more
Module

x/ultra/src/deno/deps.ts

๐Ÿ’Ž Modern Streaming React Framework in Deno
Go to Latest
import * as ultra from "https://deno.land/x/ultra@v1.0.1/src/deno/deps.ts";

Classes

A variable-sized buffer of bytes with read() and write() methods.

Functions

Concatenate multiple binary arrays and return new one.

Copy a file or directory. The directory can have contents. Like cp -r. Requires the --allow-read and --allow-write flag.

Ensures that a directory is empty. Deletes directory contents if the directory is not empty. If the directory does not exist, it is created. The directory itself is not deleted. Requires the --allow-read and --allow-write flag.

Ensures that the directory exists. If the directory structure does not exist, it is created. Like mkdir -p. Requires the --allow-read and --allow-write flag.

Create a ReadableStream<Uint8Array> from from a Deno.Reader.

Serves HTTP requests with the given handler.

Walks the file tree rooted at root, yielding each file or directory in the tree filtered according to the given options. The files are walked in lexical order, which makes the output deterministic but means that for very large directories walk() can be inefficient.