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/image-url.jpg%20%22Optional%20title%22?q=function&page=1823&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 18501 results for "function"(8396ms)

myApimain.tsx1 match

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

promiseMapmain.tsx3 matches

@stungeye•Updated 1 year ago
1// Maps over a collection with an async function.
2// Awaits all the promises and returns the mapped data.
3export async function promiseMap(data, asyncFunction) {
4 return await Promise.all(data.map((k) => asyncFunction(k)));
5}

myApimain.tsx1 match

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

tidbytCheckmain.tsx1 match

@andreterron•Updated 1 year ago
1import { tidbytCircle } from "https://esm.town/v/andreterron/tidbytCircle";
2
3export async function tidbytCheck({ size = 7, bg = 0x047857ff, check = 0xffffffff }: {
4 size?: number;
5 bg?: number;

delaymain.tsx1 match

@andreterron•Updated 1 year ago
1export function delay(ms: number) {
2 return new Promise<void>((resolve) => setTimeout(() => resolve(), ms));
3}

tidbytSkippedmain.tsx1 match

@andreterron•Updated 1 year ago
1import { tidbytCircle } from "https://esm.town/v/andreterron/tidbytCircle";
2
3export async function tidbytSkipped({ size = 7, bg = 0xffffff80, line = 3 }: {
4 size?: number;
5 bg?: number;

myApimain.tsx1 match

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

myApimain.tsx1 match

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

myApimain.tsx1 match

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

dlockmain.tsx1 match

@karfau•Updated 1 year ago
16 * Forked from @stevekrouse.dlock
17 */
18export async function dlock({ id, ttl = 3 }: {
19 // lock id by default it is based on the name of the parent
20 id?: string;

getFileEmail4 file matches

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

tuna8 file matches

@jxnblk•Updated 2 weeks 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.