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=1710&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 17342 results for "function"(2097ms)

pollRssFeed2main.tsx1 match

@rodrigotelloUpdated 1 year ago
1import { newRssItems } from "https://esm.town/v/stevekrouse/newRssItems";
2
3export async function pollRssFeed2({ lastRunAt }) {
4 return ["https://inkandswitch.com/index.xml”].map(async (url) => {
5 let items = await newRssItems({ url, lastRunAt });

myApimain.tsx1 match

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

kpunkShowsmain.tsx1 match

@aeatonUpdated 1 year ago
1import { fetchHtmlDom } from "https://esm.town/v/aeaton/fetchHtmlDom";
2
3export async function kpunkShows() {
4 const url = "https://kpunk.libsyn.com/";
5 const dom = await fetchHtmlDom(url);

myApimain.tsx1 match

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

myApimain.tsx1 match

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

testeExpressEndpointmain.tsx1 match

@dev_pioneiroUpdated 1 year ago
1export function testeExpressEndpoint(req: express.Request, res: express.Response) {
2 console.log("@testeVal.context => ", req.body);
3}

myApimain.tsx1 match

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

countmain.tsx1 match

@bajUpdated 1 year ago
1export const count = (async () => {
2 let count = 0;
3 function myApi() {
4 return count++;
5 }

githubStarsmain.tsx1 match

@joshmockUpdated 1 year ago
1import { fetch } from "https://esm.town/v/std/fetch";
2
3export async function githubStars(username) {
4 let res = await fetch(`https://api.github.com/users/${username}/starred`);
5 return await res.json();

myApimain.tsx1 match

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

getFileEmail4 file matches

@shouserUpdated 1 week ago
A helper function to build a file's email
tuna

tuna8 file matches

@jxnblkUpdated 1 week ago
Simple functional CSS library for Val Town
webup
LangChain (https://langchain.com) Ambassador, KubeSphere (https://kubesphere.io) Ambassador, CNCF OpenFunction (https://openfunction.dev) TOC Member.
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": "*",