1export function myApi(name) {
2 return "hi " + name;
3}
4import { refreshData } from "https://esm.town/v/u/refreshData";
5
6export async function refresher_fetcher() {
7 for (const [name, time] of Object.entries(
8 refreshData as Record<string, number>
1export function myApi(name) {
2 return "hi " + name;
3}
1import { private_library_val } from "https://esm.town/v/stevekrouse/private_library_val";
2
3export function untitled_return_steverkrouse_val() {
4 return private_library_val;
5}
1let { testMutableExample1 } = await import("https://esm.town/v/stevekrouse/testMutableExample1");
2
3export function publicValGetter() {
4 testMutableExample1++;
5 testMutableExample1++;
1import { fetchJSON } from "https://esm.town/v/stevekrouse/fetchJSON";
2
3export function wikidata(sparql: string) {
4 return fetchJSON(
5 "https://query.wikidata.org/sparql" + "?query=" +
1import { fetchJSON } from "https://esm.town/v/stevekrouse/fetchJSON";
2
3export function discordChannel({ botToken, serverId }) {
4 return fetchJSON(
5 `https://discord.com/api/guilds/${serverId}/channels`,
1export function getDayName(date?: Date) {
2 return (date ?? new Date()).toLocaleDateString("en-US", { weekday: "long" });
3}
3import { docsFeedback } from "https://esm.town/v/stevekrouse/docsFeedback";
4
5export async function formFeedbackAlert(interval: Interval) {
6 let newFeedback = docsFeedback
7 .filter((f) => new Date(f.time) > interval.lastRunAt);
1export function blemish() {
2 return "where the good guys go";
3}
A helper function to build a file's email
Simple functional CSS library for Val Town
import { OpenAI } from "https://esm.town/v/std/openai";
export default async function(req: Request): Promise<Response> {
if (req.method === "OPTIONS") {
return new Response(null, {
headers: {
"Access-Control-Allow-Origin": "*",
LangChain (https://langchain.com) Ambassador, KubeSphere (https://kubesphere.io) Ambassador, CNCF OpenFunction (https://openfunction.dev) TOC Member.