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=693&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 7289 results for "function"(403ms)

tsEvaltsEval1 match

@tmcw•Updated 2 months ago
3import { newWorker } from "./worker";
4
5function encodeSSE(data: any) {
6 return new TextEncoder().encode(`data: ${JSON.stringify(data)}\r\n\r\n`);
7}

exclusiveFuchsiaEaglefreeAquaBandicoot1 match

@tmcw•Updated 2 months ago
1export default async function(req: Request): Promise<Response> {
2 return new Response("Hello World", {
3 headers: { "Content-Type": "text/plain" },

Bilharzia_NumberspluckyPlumGuppy1 match

@ZainabMakled•Updated 2 months ago
1export default async function (req: Request): Promise<Response> {
2 return Response.json({ ok: true })
3}
1export default async function (interval: Interval) {
2
3}

exclusiveFuchsiaEaglethrillingGreenFerret1 match

@tmcw•Updated 2 months ago
1export default async function (req: Request): Promise<Response> {
2 return Response.json({ ok: true })
3}

exclusiveFuchsiaEaglesophisticatedAmberGuanaco1 match

@tmcw•Updated 2 months ago
1export default async function (req: Request): Promise<Response> {
2 return Response.json({ ok: true })
3}

exclusiveFuchsiaEaglemodernMaroonGuan1 match

@tmcw•Updated 2 months ago
1export default async function (req: Request): Promise<Response> {
2 return Response.json({ ok: true })
3}

exclusiveFuchsiaEaglemethodicalCopperMite1 match

@tmcw•Updated 2 months ago
1export default async function (req: Request): Promise<Response> {
2 return Response.json({ ok: true })
3}

exclusiveFuchsiaEagleusableChocolateGopher1 match

@tmcw•Updated 2 months ago
1export default async function (interval: Interval) {
2
3}
1export default async function (req: Request): Promise<Response> {
2 return Response.json({ ok: true })
3}

getFileEmail4 file matches

@shouser•Updated 5 days ago
A helper function to build a file's email

TwilioHelperFunctions

@vawogbemi•Updated 2 months ago