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=2818&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 29123 results for "function"(3078ms)

myApimain.tsx1 match

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

deleteValVersionmain.tsx1 match

@neverstew•Updated 1 year ago
1import { fetch } from "https://esm.town/v/std/fetch";
2
3export function deleteValVersion({ token, id, version }: {
4 token: string;
5 id: string;

myApimain.tsx1 match

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

metaCallmain.tsx1 match

@eric•Updated 1 year ago
1export let metaCall = function() {
2 return this
3}

ericWorkspacemain.tsx1 match

@eric•Updated 1 year ago
2import { getEmails as getEmails2 } from "https://esm.town/v/eric/getEmails";
3
4export function ericWorkspace() {
5 return {
6 getEmails: getEmails2,

myApimain.tsx1 match

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

myApimain.tsx1 match

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

myApimain.tsx1 match

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

setCountermain.tsx1 match

@ae_play•Updated 1 year ago
1let { counter } = await import("https://esm.town/v/ae_play/counter");
2
3export function setCounter(mutator) {
4 counter = mutator(counter)
5}

myApimain.tsx1 match

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

tuna9 file matches

@jxnblk•Updated 1 day ago
Simple functional CSS library for Val Town

getFileEmail4 file matches

@shouser•Updated 1 month ago
A helper function to build a file's email
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.