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

x/ultra/lib/build/deps.ts

🧙 Hypermodern Zero-Legacy Deno/React Framework
Go to Latest
import * as ultra from "https://deno.land/x/ultra@v2.0.0-beta.13/lib/build/deps.ts";

Classes

A FileBag holds and manages implementations of IFile

Variables

🖍️ Crayon object that's used for styling

  • Call the last property as a function with arguments to get styled string

Functions

Set text color to bright blue.

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

Merges the two given Records, recursively merging any nested Records with the second collection overriding the first in case of conflict

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.

Convert a glob string to a regular expression.

Set text color to green.

Converts and format a variable number of args as is specified by format. sprintf returns the formatted string.

Make the text underline.

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.