1export function myApi(name) {
2 return "Hello " + name;
3}
1import { ghIssueFromNodeId } from "https://esm.town/v/augustohp/ghIssueFromNodeId";
2
3export async function ghProjectColumnOfIssue(
4 nodeId: string,
5 token: string,
6 * @example ghProjectFieldsFromIssue("I_kwDOJYe5Es5qSNa2", 2, "github_pat_yadayada")
7 */
8export async function ghProjectFieldsFromIssue(
9 nodeId: string,
10 projectNumber: number,
1export function myApi(name) {
2 return "hi " + name;
3}
1import { untitled_ivoryPuma } from "https://esm.town/v/haxzie/untitled_ivoryPuma";
2
3export function myAPI(message) {
4 return "hello" + untitled_ivoryPuma();
5}
1//https://api.val.town/v1/run/vawogbemi.myApi?args=["vawogbemi","12"]
2export function myApi(name, age) {
3 return { "hi ": name, "im": age };
4}
1export function myApi(name) {
2 return "hi " + name;
3}
1import { parseFigmaURL } from "https://esm.town/v/rodrigotello/parseFigmaURL";
2
3export function GetFigmaFileKey(url: string) {
4 return parseFigmaURL(url).key;
5}
1import { s } from "https://esm.town/v/jrmann100/s";
2
3export async function retry<A extends unknown[], R>(
4 times = 3,
5 timeout = 1000,
1import { fetch } from "https://esm.town/v/std/fetch";
2
3export async function getCNNNewsShort() {
4 const response = await fetch(
5 "https://saurav.tech/NewsAPI/everything/cnn.json"
7 const data = await response.json();
8 const { articles } = data;
9 // Function to strip HTML tags from a string
10 const stripHtmlTags = (str) => {
11 const regex = /(<([^>]+)>)/gi;
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": "*",