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=2159&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 22454 results for "function"(2854ms)

myApimain.tsx1 match

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

myApimain.tsx1 match

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

myApimain.tsx1 match

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

pingReplitmain.tsx1 match

@dr0•Updated 1 year ago
1import { fetch } from "https://esm.town/v/std/fetch";
2
3export async function pingReplit() {
4 fetch("https://lookup.icxk.top/imgs/36x36.png");
5}

myApimain.tsx1 match

@cescyang•Updated 1 year ago
1export function myApi(name) {
2 return "hi " + name;
3}
1import { dinoGameScoreboard } from "https://esm.town/v/rodrigotello/dinoGameScoreboard";
2
3export function denoGameCurrentScoreboardLeader() {
4 let currentLeader = dinoGameScoreboard.reduce(
5 (highest, current) => {

myApimain.tsx1 match

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

handleISBNBookmain.tsx1 match

@octref•Updated 1 year ago
3import { ghContent2 } from "https://esm.town/v/octref/ghContent2";
4
5export async function handleISBNBook(req: express.Request, res: express.Response) {
6 const ISBN_PATH = "data/mine/books-isbn.json";
7 const { content, sha } = await ghContent2(ISBN_PATH);

TanaCurrencymain.tsx1 match

@eagle251•Updated 1 year ago
1import { currency } from "https://esm.town/v/stevekrouse/currency?v=23";
2
3export async function TanaCurrency(req, res) {
4 let amount = parseFloat(`${req.query.amount}`);
5 const usdGBP = await currency(

getFileEmail4 file matches

@shouser•Updated 1 month ago
A helper function to build a file's email
tuna

tuna8 file matches

@jxnblk•Updated 1 month 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.