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/$%7Burl%7D?q=function&page=1829&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 18573 results for "function"(1547ms)

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[] = [];

myApimain.tsx1 match

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

untitled6709436main.tsx1 match

@maxmetcalfe•Updated 1 year ago
1export let untitled6709436 = default async function() {
2 console.log("here")
3}

pokeMemain.tsx1 match

@kevin•Updated 1 year ago
1let { pokes } = await import("https://esm.town/v/kevin/pokes");
2
3export function pokeMe() {
4 pokes = (pokes || 0) + 1;
5 console.email(pokes);

myApimain.tsx1 match

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

extractTextmain.tsx1 match

@Llad•Updated 1 year ago
1import { fetch } from "https://esm.town/v/std/fetch";
2
3export async function extractText(data, name) {
4 const fileUrl =
5 "https://www.gcmgrosvenor.com/wp-content/uploads/Private-Credit-Co-investing-GCM-Grosvenor.pdf";

hnFollowPollJobmain.tsx1 match

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

myApimain.tsx1 match

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

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.