Skip to main content
Deno 2 is finally here 🎉️
Learn more
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.2.2/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, optionally with a set of options, and return an object representing the flags found in the passed arguments.

Join all given a sequence of paths,then normalizes the resulting path.

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.