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=1718&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 18128 results for "function"(2471ms)

snakeToTitleCasemain.tsx1 match

@rwev•Updated 1 year ago
1export function snakeToTitleCase(str) {
2 return str
3 .split("_")

runmain.tsx1 match

@marianoguerra•Updated 1 year ago
1export async function run(req: express.Request, res: express.Response) {
2 let c = (
3 s,

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}

getFileEmail4 file matches

@shouser•Updated 1 week 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
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": "*",