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%22Image%20title%22?q=function&page=1808&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 18318 results for "function"(3328ms)

myApimain.tsx1 match

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

testeExpressEndpointmain.tsx1 match

@dev_pioneiro•Updated 1 year ago
1export function testeExpressEndpoint(req: express.Request, res: express.Response) {
2 console.log("@testeVal.context => ", req.body);
3}

myApimain.tsx1 match

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

countmain.tsx1 match

@baj•Updated 1 year ago
1export const count = (async () => {
2 let count = 0;
3 function myApi() {
4 return count++;
5 }

githubStarsmain.tsx1 match

@joshmock•Updated 1 year ago
1import { fetch } from "https://esm.town/v/std/fetch";
2
3export async function githubStars(username) {
4 let res = await fetch(`https://api.github.com/users/${username}/starred`);
5 return await res.json();

myApimain.tsx1 match

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

myGreetingmain.tsx1 match

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

sayHellomain.tsx1 match

@gera•Updated 1 year ago
1export function sayHello(name: string) {
2 console.log(`arg was ${name}`);
3 return `Hello, ${name}`;

wttrAstronomyReportDatamain.tsx1 match

@rwev•Updated 1 year ago
2import { wttrJson as wttrJson2 } from "https://esm.town/v/rwev/wttrJson";
3
4export async function wttrAstronomyReportData(location: string) {
5 const wttrJson = await wttrJson2(location);
6 const area = wttrJson.nearest_area[0];

wttrAstronomyToHTMLTablemain.tsx1 match

@rwev•Updated 1 year ago
2import { wrapInHTMLElements } from "https://esm.town/v/rwev/wrapInHTMLElements";
3
4export async function wttrAstronomyToHTMLTable(
5 jsonReport: any
6): Promise<string> {

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": "*",