Skip to main content
Module

x/ultra/lib/build/deps.ts

💎 Next-gen browser/server fluid React framework
Go to Latest
import * as ultra from "https://deno.land/x/ultra@v2.0.0-alpha.3/lib/build/deps.ts";

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.