1import { fetch } from "https://esm.town/v/std/fetch";
2
3export async function fetchWikipediaContent(url) {
4 try {
5 const title = url.split("/wiki/")[1];
1export function multiplyBy5(value) {
2 return value * 5;
3}
1import { fetch } from "https://esm.town/v/std/fetch";
2
3export async function sendMessage(ptnKey: string, message: string) {
4 await fetch("https://app.phonetonote.com/hooks/zapier", {
5 body: JSON.stringify({
2import { extractReiseauskunftDbStationCodeFromUrl } from "https://esm.town/v/hanbzu/extractReiseauskunftDbStationCodeFromUrl";
3
4export async function getReiseauskunftDeps(station, date, time) {
5 const { DOMParser } = await import(
6 "https://deno.land/x/deno_dom/deno-dom-wasm.ts"
7 );
8 function convertDateIsoToGerman(date) {
9 return [...date.matchAll(/^(\d{4})-0?(\d+)-0?(\d+)$/g)].map(
10 ([, year, month, day]) =>
15 );
16 }
17 function extractStops(string) {
18 const regex =
19 /(\w+(?: \w+)?(?: \w+)?(?: \w+)?(?: \w+)?(?: \w+)?(?: \w+)?(?: \w+)?(?: \w+)?(?: \w+)?) \n(\d{2}:\d{2})/g;
1export function myApi(name) {
2 var sentence = "hi " + name;
3 console.email(sentence);
1export function kelvinToCelcius(kelvin) {
2 return kelvin - 273.15;
3}
1export function myApi(name) {
2 return "hi " + name;
3}
2import { parseBlock } from "https://esm.town/v/usefulthink/parseBlock";
3
4export async function getAvailableCourses() {
5 const JSDOM = await import("npm:jsdom");
6 const qs = await import("node:querystring");
1export function msToIsoDate(unixMs) {
2 return new Date(unixMs).toISOString().split("T")[0];
3}
1export function myApi(name) {
2 return "hi " + name;
3}
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": "*",