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.
Viewing readonly version of main branch: v23View latest version
A comprehensive collection of utilities for building and testing applications in Val Town Projects.
readFile- Read files from Val Town valslistFiles- List all files in a vallistFilesByPath- List files in a specific directory pathhttpEndpoint- Get HTTP endpoint URL for a fileemailAddress- Get email address for email trigger filesgetValId- Lookup a val's IDfetchTranspiledJavaScript- Fetch and transpile TypeScript/JavaScriptparseVal- Extract metadata from Val Town URLsserveFile- Serve files with proper content typesgetContentType- Determine MIME types for filesstaticHTTPServer- Create a static file servertestServer- Create a test runner with HTML/SVG outputisMain- Check if current file is the main entry point
See the generated documentation for complete API reference.
