Module

x/fresh/src/dev/deps.ts

The next-gen web framework.
Extremely Popular
Latest
import * as mod from "https://dotland.deno.dev/x/fresh@1.7.3/src/dev/deps.ts";

Namespaces

String formatters and utilities for dealing with ANSI color codes.

parse function for parsing JSONC (JSON with Comments) strings.

Classes

Project that holds source files.

Error thrown in walk or {@link walkSync} during iteration.

Variables

The number of milliseconds in a day.

The number of milliseconds in a week.

Functions

Make an assertion that actual and expected are equal, deeply. If not deeply equal, then throw.

Return the last portion of a path. Trailing directory separators are ignored, and optional suffix is removed.

Set background color to black.

Set background color to blue.

Set background color to bright black.

Set background color to bright blue.

Set background color to bright cyan.

Set background color to bright green.

Set background color to bright magenta.

Set background color to bright red.

Set background color to bright white.

Set background color to bright yellow.

Set background color to cyan.

Set background color to green.

Set background color to magenta.

Set background color to red.

Set background color using 24bit rgb. color can be a number in range 0x000000 to 0xffffff or an Rgb.

Set background color using paletted 8bit colors. https://en.wikipedia.org/wiki/ANSI_escape_code#8-bit

Set background color to white.

Set background color to yellow.

Set text color to black.

Set text color to blue.

Make the text bold.

Set text color to bright black.

Set text color to bright blue.

Set text color to bright cyan.

Set text color to bright green.

Set text color to bright magenta.

Set text color to bright red.

Set text color to bright white.

Set text color to bright yellow.

Set text color to cyan.

The text emits only a small amount of light.

Get whether text color change is enabled or disabled.

Set text color to gray.

Set text color to green.

Make the text hidden.

Invert background color and text color.

Make the text italic.

Set text color to magenta.

Set text color to red.

Reset the text modified.

Set text color using 24bit rgb. color can be a number in range 0x000000 to 0xffffff or an Rgb.

Set text color using paletted 8bit colors. https://en.wikipedia.org/wiki/ANSI_escape_code#8-bit

Set changing text color to enabled or disabled

Put horizontal line through the center of the text.

Remove ANSI escape codes from the string.

Remove ANSI escape codes from the string.

Make the text underline.

Set text color to white.

Set text color to yellow.

Return the directory path of a path.

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.

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:

Return the extension of the path with leading period.

Converts a file URL to a path string.

Greater than or equal to comparison

Join all given a sequence of paths,then normalizes the resulting path.

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

Less than comparison

Normalize the path, resolving '..' and '.' segments. Note that resolving these segments does not necessarily mean that all will be eliminated. A '..' at the top-level will be preserved, and an empty path is canonically '.'.

f
parse
deprecated

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.

Return the relative path from from to to based on current working directory.

Resolves path segments into a path

Attempt to parse a string as a semantic version, returning either a SemVer object or throws a TypeError.

Converts a path string to a file URL.

Walks the file tree rooted at root, yielding each file or directory in the tree filtered according to the given options.

Interfaces

RGB 8-bits per channel. Each in range 0->255 or 0x00->0xff

Options for parse.

Walk entry for walk, {@link walkSync}, {@link expandGlob} and {@link expandGlobSync}.

Type Aliases

The type of the result of parsing JSON.