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.3.8/lib/deps.ts";

Namespaces

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

Classes

An object that encapsulates provided message and arguments as well some metadata that can be later used when formatting a message.

Enums

Get log level numeric values through enum constants. Defaults to INFO.

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.

Handlers are responsible for actual output of log messages. When a handler is called by a logger, it firstly checks that LogRecord's level is not lower than level of the handler. If level check passes, handlers formats log record into string and outputs it to target.

Functions

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.

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.