Skip to main content
Module

x/johnny_decimal/deps.ts

Utilities for interacting with a Johnny Decimal filing system.
Latest
import * as johnnyDecimal from "https://deno.land/x/johnny_decimal@1.2.0/deps.ts";

Functions

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

Make the text bold.

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.

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:

Set text color to green.

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

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.

Parses content as single YAML document.

Set text color to red.

Serializes object as a YAML document.

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