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=2387&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 24554 results for "function"(2334ms)

getMcgillEventsmain.tsx1 match

@ehodges•Updated 1 year ago
2import { newRSSItems } from "https://esm.town/v/stevekrouse/newRSSItems?v=6";
3
4export async function getMcgillEvents() {
5 const url =
6 "https://www.alumni.mcgill.ca/aoc/events-travel/registration/regwizEventsList.php?location=050%3AMA&school=&dateMonth=&title=&doSearch=1";

myApimain.tsx1 match

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

myApimain.tsx1 match

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

myApimain.tsx1 match

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

openapi2TSmain.tsx1 match

@pomdtr•Updated 1 year ago
2import { prettifyTS } from "https://esm.town/v/pomdtr/prettifyTS";
3
4export async function openapi2TS(url: string) {
5 const yaml = await import("npm:yaml");
6 const resp = await fetch(url);

convertStringmain.tsx1 match

@pomdtr•Updated 1 year ago
1export function convertString(string) {
2 // Convert uppercase letters to lowercase
3 let convertedString = string.toLowerCase();

pocketmain.tsx1 match

@eric•Updated 1 year ago
1export function pocket() {
2 return {
3 get greeting() { return 'hi there' }

myApimain.tsx1 match

@abdulamite•Updated 1 year ago
1export function myApi(name, date) {
2 console.log("Here is something in the console");
3 return "hi " + name + date;

myApimain.tsx1 match

@joakim•Updated 1 year ago
1import { myApi as myApi2 } from "https://esm.town/v/joakim/myApi";
2
3export function myApi(name) {
4 return "hi " + name + ". This is posted from " + myApi2;
5}

myApimain.tsx1 match

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

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.