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=2120&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 21687 results for "function"(1931ms)

calc_qq_stringmain.tsx1 match

@envl•Updated 1 year ago
1export function calc_qq_string(grade: number) {
2 const rest = grade.toString(4).split("").map(Number);
3 const [

myApimain.tsx1 match

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

httpNullmain.tsx1 match

@augustohp•Updated 1 year ago
1// For debugging/inspecting webhooks requests ...
2export async function httpNull(req: express.Request, res: express.Response) {
3 res.end("Success");
4}

clearMyApimain.tsx1 match

@acmu•Updated 1 year ago
1let { fizz } = await import("https://esm.town/v/acmu/fizz");
2
3export function clearMyApi(name) {
4 fizz = "";
5 return "clear yes nbnbnb";

myApimain.tsx1 match

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

basicsWithBabishRssmain.tsx4 matches

@diit•Updated 1 year ago
1import { fetch } from "https://esm.town/v/std/fetch";
2
3export async function basicsWithBabishRss(req: express.Request, res) {
4 const { Feed } = await import("npm:feed");
5 // function toTitleCase(str) {
6 // return str.replace(/\w\S*/g, function (txt) {
7 // return txt.charAt(0).toUpperCase() + txt.substr(1).toLowerCase();
8 // });
9 // }
10 async function generateRssFeed() {
11 const { parseDocument } = await import("npm:htmlparser2");
12 const response = await fetch("https://basicswithbabish.co/episodes");

myApimain.tsx1 match

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

kpunkShowmain.tsx1 match

@aeaton•Updated 1 year ago
1import { fetchHtmlDom } from "https://esm.town/v/aeaton/fetchHtmlDom";
2
3export async function kpunkShow(url) {
4 const dom = await fetchHtmlDom(url);
5 const date = dom.querySelector(".postDate")?.textContent.trim();

myApimain.tsx1 match

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

etherealExtractormain.tsx1 match

@zerilliworks•Updated 1 year ago
1import { fetch } from "https://esm.town/v/std/fetch";
2
3export const etherealExtractor = async function (
4 req: express.Request,
5 res: express.Response,

getFileEmail4 file matches

@shouser•Updated 3 weeks ago
A helper function to build a file's email
tuna

tuna8 file matches

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