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=2093&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 22317 results for "function"(2571ms)

parseReplyEmailmain.tsx1 match

@andreterron•Updated 1 year ago
4const parser = new EmailReplyParser(MockRe2);
5
6export function parseReplyEmail(body: string) {
7 return parser.read(body);
8}

nodeJSDistmain.tsx1 match

@stevekrouse•Updated 1 year ago
2import LZString from "npm:lz-string";
3
4export async function nodeJSDist(req: Request): Promise<Response> {
5 let url = new URL(req.url);
6 if (url.pathname === "/index.tab") {

pollNodeJSmain.tsx1 match

@stevekrouse•Updated 1 year ago
5const url = "https://nodejs.org/dist/index.tab";
6
7export async function pollNodeJS(interval: Interval) {
8 let resp = await fetch(url);
9 if (!resp.ok) return;

isSupportedmain.tsx1 match

@spurushottam13•Updated 1 year ago
1export async function isSupported(jsInterface) {
2 const caniuse = await import("npm:caniuse-api");
3 return caniuse.getSupport("border-radius");

getProjectsmain.tsx1 match

@envl•Updated 1 year ago
1import { siteDB } from "https://esm.town/v/envl/siteDB";
2
3export async function getProjects() {
4 return Response.json((await siteDB).projList);
5}

parse_cookiesmain.tsx1 match

@mattx•Updated 1 year ago
1export function parse_cookies(
2 jar: String,
3 decoder: (data: string) => string = decodeURIComponent,

animemain.tsx1 match

@yieldray•Updated 1 year ago
98};
99
100export async function anime(catOrName?: number | string, episode?: string | number) {
101 if (catOrName != undefined)
102 if (episode != undefined) return getEpisode(catOrName, episode);

extractReceiptEndpointmain.tsx1 match

@clayway•Updated 1 year ago
7 time_zone: string;
8};
9export async function extractReceiptEndpoint(request: Request): Promise<Response> {
10 if (request.method !== "POST") {
11 return Response.json({

receive_emailmain.tsx1 match

@andreterron•Updated 1 year ago
2import { saveToAirtable } from "https://esm.town/v/andreterron/saveToAirtable";
3
4export async function receive_email(email: Email) {
5 console.log(JSON.stringify(email, null, 2));
6 const data = await extractData(email);

untitled_674cf68fmain.tsx1 match

@neverstew•Updated 1 year ago
2import { htmlResponse } from "https://esm.town/v/neverstew/htmlResponse";
3
4export async function untitled_674cf68f(request: Request): Promise<Response> {
5 return htmlResponse(
6 <main>

getFileEmail4 file matches

@shouser•Updated 4 weeks 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.