Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/ter/deps/std.ts

A tiny wiki-style site generator with Zettelkasten flavor.
Go to Latest
import * as ter from "https://deno.land/x/ter@0.15.48/deps/std.ts";

Functions

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

Determines the common path from a set of paths, using an optional separator, which defaults to the OS default separator.

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.

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.

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.

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.

Tests if a string has valid front matter. Supports YAML, TOML and JSON.

Verifies whether provided path is absolute

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

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

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