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

x/mesozoic/lib/deps.ts

A generic build system for Deno web apps
Go to Latest
import * as mesozoic from "https://deno.land/x/mesozoic@v1.0.0-beta.1/lib/deps.ts";

Namespaces

Logging library with the support for terminal and file outputs. Also provides interfaces for building custom loggers.

Enums

Get log level numeric values through enum constants

Variables

🖍️ Crayon object that's used for styling

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

Wait for init to resolve before calling parse.

Functions

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

Create a module graph using the same algorithms that are used in the Deno CLI, resolving with the module graph for further processing.

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.

A Deno specific loader function that can be passed to the createModuleGraph which will use Deno.readTextFile for local files, or use fetch() for remote modules.

Log with critical level, using default logger.

Log with debug level, using default logger.

Log with error level, using default logger.

Get a logger instance. If not specified name, get the default logger.

Log with info level, using default logger.

Setup logger config.

Log with warning level, using default logger.

Outputs the list of exports and locations of import specifiers, including dynamic import and import meta handling.

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

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.