vladimyr avatar
vladimyr
fetchVal
Script
// SPDX-License-Identifier: 0BSD
0
vladimyr avatar
vladimyr
serveReadme
Script
// SPDX-License-Identifier: 0BSD
2
vladimyr avatar
vladimyr
toHonoHandler
Script
// SPDX-License-Identifier: 0BSD
1
std avatar
std
API_URL
Script
Val Town API URL When Val Town code is run on Val Town servers we use a local URL so we can save time by skipping a roundtrip to the public internet. However, if you want to run your vals that use our API, ie std library vals, locally, you'll want to use our public API's URL, https://api.val.town . We recommend importing and using std/API_URL whenever you use our API so that you are always using the most efficient route. Example Usage import { API_URL } from "https://esm.town/v/std/API_URL"; const response = await fetch(`${API_URL}/v1/me`, { headers: { Authorization: `Bearer ${Deno.env.get("valtown")}`, Accept: "application/json", }, }); const data = await response.json(); console.log(data)
0
pomdtr avatar
pomdtr
gfm
Script
Markdown to html (with github styling)
9
pomdtr avatar
pomdtr
readme
Script
An interactive, runnable TypeScript val by pomdtr
0
pomdtr avatar
pomdtr
extractValInfo
Script
Extract vals infos (author, name, version) from a val url (either from esm.town or val.town ). Example usage: const {author, name} = extractValInfo(import.meta.url) Also returns a unique slug for the val: <author>/<name>
15
1
Next
vladimyr-valshot.web.val.run
Updated: March 6, 2024