utils
Val Town is a collaborative website to build and scale JavaScript apps.
Deploy APIs, crons, & store data – all from the browser, and deployed in milliseconds.
https://std--af0e023af52911efaa50569c3dd06744.web.val.run
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:
Example usage: https://www.val.town/x/std/reactHonoStarter/code/backend/index.ts