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=1803&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 18321 results for "function"(1333ms)

myApimain.tsx1 match

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

extractValArgsmain.tsx1 match

@pomdtr•Updated 1 year ago
2import { valToString } from "https://esm.town/v/pomdtr/valToString";
3
4export async function extractValArgs(val: string) {
5 const code = await valToString(val);
6 return extractArgs(code) as Promise<{

sunbeamGithubNotificationsmain.tsx1 match

@pomdtr•Updated 1 year ago
1import { githubNotifications } from "https://esm.town/v/pomdtr/githubNotifications";
2
3export async function sunbeamGithubNotifications() {
4 const notifications = await githubNotifications();
5 return {

vanPlateExamplemain.tsx1 match

@pomdtr•Updated 1 year ago
1export async function vanPlateExample(req: Request) {
2 const { default: van } = await import(
3 "https://deno.land/x/minivan@0.3.9/src/van-plate.js"

untitled8578717main.tsx1 match

@byrneml•Updated 1 year ago
8}
9
10export async function giveMeLeNews({ feedlyAPI }: LeNews) {
11 return "Works";
12}

myApimain.tsx1 match

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

hnFollowPollJobmain.tsx1 match

@guidoism•Updated 1 year ago
3import { hnLatestPosts } from "https://esm.town/v/stevekrouse/hnLatestPosts?v=18";
4
5export async function hnFollowPollJob(interval: Interval) {
6 let posts = await hnLatestPosts({
7 authors: hackerNewsAuthors,

myApimain.tsx1 match

@xiaogenban•Updated 1 year ago
1import { imgMin } from "https://esm.town/v/xiaogenban/imgMin";
2
3export async function myApi(name) {
4 return imgMin(name);
5 // return `hi ${name}`;

myApimain.tsx1 match

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

njuskaloIndexmain.tsx1 match

@tvalincic•Updated 1 year ago
5import { njuskaloCreateDataWithInterfaces } from "https://esm.town/v/kajgod/njuskaloCreateDataWithInterfaces?v=20";
6
7export async function njuskaloIndex(req: express.Request, res: express.Response) {
8 let len = 3; // default number of elements, can be overrun on frontend
9 let keywords: 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
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.