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=1678&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 17298 results for "function"(2307ms)

testmain.tsx1 match

@Timmy•Updated 1 year ago
1export const test = (async function init() {
2 const res = await import("https://esm.sh/web-features/index.json") assert { type: "json" };
3 return res;

mainmain.tsx1 match

@Timmy•Updated 1 year ago
2import { getIssueNumber } from "https://esm.town/v/Timmy/getIssueNumber";
3
4export async function main() {
5 let latestIssue = 643;
6 const init = (async () => {

myApimain.tsx1 match

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

polygonPriceOnDatemain.tsx1 match

@rwev•Updated 1 year ago
1import { polygonDailyAPI } from "https://esm.town/v/rwev/polygonDailyAPI";
2
3export async function polygonPriceOnDate(ticker, isoDate) {
4 const response = await polygonDailyAPI(ticker, isoDate);
5 if (response.status != "OK")

myApimain.tsx1 match

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

untitled_coffeeElkmain.tsx3 matches

@WilcoAJ•Updated 1 year ago
3export const untitled_coffeeElk = (async () => {
4 const { parseStringPromise } = await import("npm:xml2js");
5 function makeUrl(date: Date): string {
6 const dateString = date.toISOString().split("T")[0];
7 return `https://repository.overheid.nl/sru?query=dt.title="exploitatievergunning horecabedrijf" AND dt.title="Besluit (Nieuw)" AND dt.title="Nieuw" AND dt.creator=Amsterdam AND dt.modified=${dateString}&maximumRecords=100`;
8 }
9 async function doFetch(date: Date): any {
10 const url = makeUrl(date);
11 const fetchResponse = await fetch(url.toString());
16 return parseStringPromise(text);
17 }
18 function parseResponse(resp: any) {
19 // console.log(
20 // resp["sru:searchRetrieveResponse"]["sru:records"][0]["sru:record"],

myApimain.tsx1 match

@SlugeR•Updated 1 year ago
1export function myApi(count) {
2 return count + " dragons!";
3}

myApimain.tsx1 match

@lionad•Updated 1 year ago
1export function myApi(name) {
2 console.email("hi " + name);
3}

myApimain.tsx1 match

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

myApimain.tsx1 match

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

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
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.