Skip to main content
Module

x/packup/deps.ts

📦 Zero-config web application packager in Deno
Go to Latest
import * as packup from "https://deno.land/x/packup@v0.1.13/deps.ts";

Classes

The MuxAsyncIterator class multiplexes multiple async iterators into a single stream. It currently makes an assumption:

  • The final result (the value returned and not yielded from the iterator) does not matter; if there is any, it is discarded.

Functions

f
createHash
deprecated

Creates a new Hash instance.

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.

Returns a promise for the child process.

Take a set of command line arguments, with an optional set of options, and return an object representation of those argument.

Set text color to red.

Serves the items from the async iterable of the files matching by its file name.

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.