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/?q=function&page=1679&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 17289 results for "function"(2268ms)

myApimain.tsx1 match

@mik639•Updated 1 year ago
1import { greet } from "https://esm.town/v/mik639/greet";
2
3export function myApi(name) {
4 console.email(greet(name), "Test email");
5}

myApimain.tsx1 match

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

percentLiftGasNeededSTPmain.tsx1 match

@andrew•Updated 1 year ago
1export function percentLiftGasNeededSTP(
2 liftForce,
3 totalVolume,

referencesmain.tsx1 match

@stevekrouse•Updated 1 year ago
2import { fetchJSON } from "https://esm.town/v/stevekrouse/fetchJSON";
3
4export async function references({ token, since, until, offset, limit }: {
5 token: string;
6 since?: Date;

verifyAPIAuthmain.tsx1 match

@stevekrouse•Updated 1 year ago
4import { getPublicKey } from "https://esm.town/v/stevekrouse/getPublicKey";
5
6export async function verifyAPIAuth({ signature, ...signed }) {
7 let { handle, t } = signed;
8 let publicKey = await getPublicKey(handle);

runErrorEmailmain.tsx1 match

@stevekrouse•Updated 1 year ago
2import { runs as runs2 } from "https://esm.town/v/stevekrouse/runs";
3
4export function runErrorEmail(data) {
5 type Then<T> = T extends Promise<infer U> ? U : never;
6 let runs = data.data as Then<

magnitTokenizemain.tsx1 match

@catapart•Updated 1 year ago
1export async function magnitTokenize(value: string, specification: Array<{ regex: RegExp, key?: string, captureGroups?: string[], groupJoinValue?: string, resultCallback?: (value: string) => Promise<string> }>|null = null)
2{
3 class MagnitTokenizerSpecification extends Array<MagnitTokenizerSpecificationItem> { }

myApimain.tsx1 match

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

anyjsmain.tsx1 match

@envl•Updated 1 year ago
1export async function anyjs(req: Request) {
2 // const res = await @stevekrouse.eval_("8+8");
3 return Response.json(Array.from(req.headers.entries()));

calc_qq_stringmain.tsx1 match

@envl•Updated 1 year ago
1export function calc_qq_string(grade: number) {
2 const rest = grade.toString(4).split("").map(Number);
3 const [

getFileEmail4 file matches

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

tuna8 file matches

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