Val Town Project Utilities
These utils are very rapidly developing, so expect breaking changes.
- file - reading files and directories in Projects
- parseImportMeta - parse project info out of its
importa.meta.url
- serve-file - return Project files as HTTP Responses with proper content-types
- test - a little framework for running tests and displaying the results as HTML and a badge
Import them with version pins to be safe:
import { parseProject, serveFile }
from "https://esm.town/v/std/utils@85-main/index.ts";
Example usage: https://www.val.town/x/std/reactHonoStarter/code/backend/index.ts