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=2197&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 22514 results for "function"(2470ms)

tanaCalculatormain.tsx1 match

@eagle251•Updated 1 year ago
1import { calculator as calculator2 } from "https://esm.town/v/eagle251/calculator";
2
3export async function tanaCalculator(res, req) {
4 let operation = `${req.query.operation}`;
5 let number1 = `${req.query.number1}`;

myApimain.tsx1 match

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

untitled7953808main.tsx1 match

@mxderouet•Updated 1 year ago
1export let untitled7953808 = function () {
2 console.email("Remember to try val.town for Weather Bot");
3}

buildDoeMenuCalendarmain.tsx1 match

@tal•Updated 1 year ago
3type Line = Parameters<typeof calendarItemForLine>[1];
4type Context = Parameters<typeof calendarItemForLine>[0];
5export async function buildDoeMenuCalendar(context: Context, storeValue) {
6 const ical = await import("npm:ical-generator");
7 let dailyOfferings: Line | undefined;

myApimain.tsx1 match

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

myApimain.tsx1 match

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

myApimain.tsx1 match

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

schemamain.tsx1 match

@u•Updated 1 year ago
1export function schema(req, res) {
2}

sparklineEx2main.tsx1 match

@stevekrouse•Updated 1 year ago
1import { sparklineSVG } from "https://esm.town/v/stevekrouse/sparklineSVG";
2
3export let sparklineEx2 = function (req, res) {
4 res.set("content-type", "image/svg+xml");
5 res.end(sparklineSVG({

randomizemain.tsx1 match

@stevekrouse•Updated 1 year ago
1export function randomize(a) {
2 return a.sort(() => Math.random() - Math.random());
3}

getFileEmail4 file matches

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

tuna8 file matches

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