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

x/p5_commander/deps.ts

A tool to easily manage and create p5 sketches
Latest
import * as p5Commander from "https://deno.land/x/p5_commander@v1.2.1/deps.ts";

Classes

A class which registers middleware (via .use()) and then processes inbound requests against that middleware (via .listen()).

An interface for registering middleware that will run when certain HTTP methods and paths are requested, as well as provides a way to parameterize parts of the requested path.

Functions

Copy a file or directory. The directory can have contents. Like cp -r. 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.

Test whether or not the given path exists by checking with the file system

Fetches one or many matching release URLs from the selected provider

Take a set of command line arguments, with an optional set of options, and return an object representation of those argument.

Asynchronously fulfill a response with a file from the local file system.

Walks the file tree rooted at root, yielding each file or directory in the tree filtered according to the given options. The files are walked in lexical order, which makes the output deterministic but means that for very large directories walk() can be inefficient.