Val Town Code SearchReturn to Val Town

API Access

You can access search results via JSON API by adding format=json to your query:

https://codesearch.val.run/$%7Bart_info.art.src%7D?q=function&page=1730&format=json

For typeahead suggestions, use the /typeahead endpoint:

https://codesearch.val.run/typeahead?q=function

Returns an array of strings in format "username" or "username/projectName"

Found 17931 results for "function"(2027ms)

ankiNudgemain.tsx1 match

@petermillspaugh•Updated 1 year ago
1import { email } from "https://esm.town/v/std/email?v=9";
2
3export async function ankiNudge() {
4 const today = new Date();
5 const todayDate = new Intl.DateTimeFormat("en-US", { dateStyle: "long" })

wttrAstronomyDatamain.tsx1 match

@rwev•Updated 1 year ago
9};
10export type AstronomyData = AstronomyPoint[];
11export async function wttrAstronomyData(
12 wttrJson: any // return of @me.wttrJson
13): Promise<AstronomyData> {

adjustMsToWeekdaymain.tsx1 match

@rwev•Updated 1 year ago
2import { msDay as msDay2 } from "https://esm.town/v/stevekrouse/msDay?v=1";
3
4export function adjustMsToWeekday(msDay) {
5 let date = new Date(msDay);
6 while (date.getDay() == 0 || date.getDay() == 6) {

myApimain.tsx1 match

@thyme•Updated 1 year ago
1export function myApi(name) {
2 return "hiii " + name;
3}

myApimain.tsx1 match

@deverts•Updated 1 year ago
1import { myCt } from "https://esm.town/v/deverts/myCt";
2
3export function myApi(name, age) {
4 return "hi " + name + " " + age + " (" + myCt + ")";
5}

myApimain.tsx1 match

@dcalsky•Updated 1 year ago
1export function myApi(name) {
2 return "hi " + name;
3}

fetchValTownAPImain.tsx1 match

@pomdtr•Updated 1 year ago
1import { fetchJSON } from "https://esm.town/v/stevekrouse/fetchJSON?v=41";
2
3export async function fetchValTownAPI(
4 apiToken: string,
5 path: string,

untitled2342187main.tsx1 match

@byrneml•Updated 1 year ago
8}
9
10export async function giveMeLeNews({ feedlyAPI }: LeNews) {
11 return "Works";
12}

patronummain.tsx1 match

@effector•Updated 1 year ago
1export async function patronum() {
2 const patronum = await import("https://esm.sh/patronum@1.19.1");
3 return patronum;

myApimain.tsx1 match

@patrickwire•Updated 1 year ago
1export function myApi(name) {
2 return "hi " + name;
3}

getFileEmail4 file matches

@shouser•Updated 1 week ago
A helper function to build a file's email
tuna

tuna8 file matches

@jxnblk•Updated 1 week ago
Simple functional CSS library for Val Town
webup
LangChain (https://langchain.com) Ambassador, KubeSphere (https://kubesphere.io) Ambassador, CNCF OpenFunction (https://openfunction.dev) TOC Member.
lost1991
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": "*",