utils
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
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