Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/ter/deps/std.ts

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

Functions

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

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.

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.

Serves HTTP requests with the given handler.

Create a ReadableStream<Uint8Array> from a Reader.

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