Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/packup/deps.ts

📦 Zero-config web application packager for Deno
Go to Latest
import * as mod from "https://deno.land/x/packup@v0.2.4/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

This function invokes the "esbuild" command-line tool for you. It returns a promise that either resolves with a "BuildResult" object or rejects with a "BuildFailure" object.

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.

Test whether or not the given path exists by checking with the file system. Please consider to check if the path is readable and either a file or a directory by providing additional options:

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.

Converts a JSON with Comments (JSONC) string into an object. If a syntax error is found, throw a SyntaxError.

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.