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/$%7Bsuccess?q=function&page=1763&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 18795 results for "function"(1513ms)

1export function getRotationFromFFmpegDisplayMatrixString(str: string) {
2 let elements = str.match(/[-+]?\d+/g)?.map(Number) || [];
3 if (elements.length !== 9) {

handleSanguineGithubWebhookmain.tsx1 match

@nico•Updated 1 year ago
2import process from "node:process";
3
4export async function handleSanguineGithubWebhook(
5 req: express.Request,
6 res: express.Response,

myApimain.tsx1 match

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

untitled6597015main.tsx1 match

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

myApimain.tsx1 match

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

parseMenuOfferingmain.tsx1 match

@tal•Updated 1 year ago
1export async function parseMenuOffering(text: string) {
2 /** get rid of the wrapping {} */
3 const stripped = text.slice(1, -1);

myApimain.tsx1 match

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

sendSwedishTimemain.tsx1 match

@ning•Updated 1 year ago
1export async function sendSwedishTime() {
2 const now = new Date();
3 const options = { timeZone: "Europe/Stockholm" };

todaymain.tsx1 match

@stungeye•Updated 1 year ago
1// "Day Month Year" version of the current date, where Month is the written word.
2export function today() {
3 let today = new Date();
4 let day = String(today.getDate()).padStart(2, "0");

testmain.tsx1 match

@scottxxx666•Updated 1 year ago
1export function test() {
2 console.email("message", "Subject Line");
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
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": "*",