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?q=function&page=9&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 28022 results for "function"(2282ms)

IPLT20index.ts4 matches

@Itssongoku•Updated 2 hours ago
42 }
43
44 // Import validation function
45 const { validateCardNumber } = await import("../shared/utils.ts");
46 const isValid = validateCardNumber(cardNumber);
64 }
65
66 // Import generation functions
67 const {
68 generateCardData,
167 }
168
169 // Import validation function
170 const { validateBulkFormat, getFormatExamples } = await import("../shared/utils.ts");
171
191 }
192
193 // Import validation function
194 const { validateBin, detectCardType } = await import("../shared/utils.ts");
195

IPLT20BinLookup.tsx1 match

@Itssongoku•Updated 2 hours ago
26}
27
28export default function BinLookup({ onBinInfo }: BinLookupProps) {
29 const [bin, setBin] = useState("");
30 const [binInfo, setBinInfo] = useState<BinInfo | null>(null);

untitled-1775new-file-2837.tsx1 match

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

untitled-1775new-file-5044.tsx1 match

@charmaine•Updated 2 hours ago
1export default async function (interval: Interval) {
2
3}

untitled-1775new-file-2004.tsx1 match

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

Ridesprofiletempletmain.tsx1 match

@pureheart•Updated 2 hours ago
2import { renderToString } from "npm:react-dom/server";
3
4export default async function(req: Request) {
5 return new Response(
6 renderToString(

sqliteExplorerAppREADME.md1 match

@pchinjr•Updated 2 hours ago
33- [x] fix wonky sidebar separator height problem (thanks to @stevekrouse)
34- [x] make result tables scrollable
35- [x] add export to CSV, and JSON (CSV and JSON helper functions written in [this val](https://www.val.town/v/nbbaier/sqliteExportHelpers). Thanks to @pomdtr for merging the initial version!)
36- [x] add listener for cmd+enter to submit query
37

Hmmmain.tsx1 match

@Dapsee•Updated 2 hours ago
2import { renderToString } from "npm:react-dom/server";
3
4export default async function(req: Request) {
5 return new Response(
6 renderToString(

Abena_Serwaahmain.tsx1 match

@Dapsee•Updated 2 hours ago
2import { renderToString } from "npm:react-dom/server";
3
4export default async function(req: Request) {
5 return new Response(
6 renderToString(

linkInBioTemplatemain.tsx1 match

@Dapsee•Updated 2 hours ago
2import { renderToString } from "npm:react-dom/server";
3
4export default async function(req: Request) {
5 return new Response(
6 renderToString(

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.