3import { msToIsoDate } from "https://esm.town/v/rwev/msToIsoDate";
4
5export async function polygonPriceOnWeekdayMsAgo(ticker, msAgo) {
6 const date = msToIsoDate(
7 adjustMsToWeekday(Date.now() - msAgo)
1export function myApi(name) {
2 return "hi " + name;
3}
1export function myApi(name) {
2 return "hi " + name;
3}
1import { fetchJSON } from "https://esm.town/v/stevekrouse/fetchJSON?v=41";
2
3export function valVersion({ token, id, version }: {
4 token?: string;
5 id: string;
3import { hnLatestPosts } from "https://esm.town/v/stevekrouse/hnLatestPosts?v=18";
4
5export async function hnFollowPollJob({ lastRunAt }) {
6 let posts = await hnLatestPosts({
7 authors: hackerNewsAuthors,
2
3// View at https://wallek-nasaImage.web.val.run
4export async function nasaImage() {
5 const { html } = await nasaImageDetails();
6 return new Response(html, {
1import { fetch } from "https://esm.town/v/std/fetch";
2
3export async function parseHtml(url: string) {
4 const { DOMParser } = await import(
5 "https://deno.land/x/deno_dom/deno-dom-wasm.ts"
2import process from "node:process";
3
4export async function discogs(
5 request: express.Request,
6 response: express.Response
2import { parseMenuDate } from "https://esm.town/v/tal/parseMenuDate";
3
4export async function parseMenuLine(line: string) {
5 let firstBreakAt = line.indexOf(",");
6 const dateStr = line.substring(0, firstBreakAt);
3import { hnLatestPosts } from "https://esm.town/v/stevekrouse/hnLatestPosts?v=18";
4
5export async function hnFollowPollJob({ lastRunAt }) {
6 let posts = await hnLatestPosts({
7 authors: hackerNewsAuthors,
A helper function to build a file's email
Simple functional CSS library for Val Town
LangChain (https://langchain.com) Ambassador, KubeSphere (https://kubesphere.io) Ambassador, CNCF OpenFunction (https://openfunction.dev) TOC Member.
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": "*",