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/$%7Burl%7D?q=function&page=1821&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 18465 results for "function"(3678ms)

testEmailmain.tsx1 match

@stevekrouseUpdated 1 year ago
2import { testEmails } from "https://esm.town/v/stevekrouse/testEmails";
3
4export function testEmail(e: {
5 from: string;
6 to: string[];

rssDemo1main.tsx1 match

@stevekrouseUpdated 1 year ago
3import { newRSSItems } from "https://esm.town/v/stevekrouse/newRSSItems";
4
5export async function rssDemo1(interval) {
6 const items = await newRSSItems({
7 url: inkAndSwitchRssUrl,

rssDemo10main.tsx1 match

@stevekrouseUpdated 1 year ago
3import { newRSSItems } from "https://esm.town/v/stevekrouse/newRSSItems";
4
5export async function rssDemo10(interval) {
6 let items = await newRSSItems({
7 url: inkAndSwitchRssUrl,

evalmain.tsx1 match

@evalUpdated 1 year ago
1export function eval(num) {
2 if (num < 0) return -1;
3 else if (num == 0) return 1;

myApimain.tsx1 match

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

myApimain.tsx1 match

@sgqUpdated 1 year ago
1export function myApi(name) {
2 return "hi world" + name;
3}

exampleDatamain.tsx1 match

@cwervoUpdated 1 year ago
1// View at https://stevekrouse-expressHTMLExample.express.val.run?name=Steve
2export async function exampleData(req: express.Request, res: express.Response) {
3 return res.send(JSON.stringify({ data: [0, 1, 2, 3, 4, 5, 6] }));
4}

reddit_alert_examplemain.tsx1 match

@bnorickUpdated 1 year ago
1import { check_reddit } from "https://esm.town/v/bnorick/check_reddit";
2
3export async function reddit_alert_example({ lastRunAt }) {
4 console.log(`last run at ${lastRunAt.getTime() / 1000}`);
5 return await check_reddit({

upgradeQQmain.tsx1 match

@envlUpdated 1 year ago
1import { calc_qq_string } from "https://esm.town/v/envl/calc_qq_string";
2
3export async function upgradeQQ(initial = 1688027887700) {
4 const unit = 1000 * 3600 * 12; // 这里取12小时做一个单位
5 // const initial = 1688027887700;

keriatShemaReminsermain.tsx1 match

@shayaUpdated 1 year ago
1import { fetch } from "https://esm.town/v/std/fetch";
2
3export async function keriatShemaReminser() {
4 const today = new Date().toISOString().split("T")[0];
5 const city = "IL-Jerusalem";

getFileEmail4 file matches

@shouserUpdated 2 weeks ago
A helper function to build a file's email
tuna

tuna8 file matches

@jxnblkUpdated 2 weeks 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.