Skip to main content
Module

x/plug/deps.ts

🔌 Deno FFI helper module
Go to Latest
import * as plug from "https://deno.land/x/plug@1.0.3/deps.ts";

Functions

Return the directory path of a path.

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.

Return the extension of the path with leading period.

Converts a file URL to a path string.

Set text color to green.

f
hex
deprecated

Verifies whether provided path is absolute

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

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 '.'.

Resolves path segments into a path

Converts a path string to a file URL.