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=1675&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 17344 results for "function"(1397ms)

1import { findingmyvoicecounter } from "https://esm.town/v/politelyinvinciblepointer/findingmyvoicecounter";
2
3export function getfindingmyvoicecounter() {
4 return findingmyvoicecounter;
5}

myApimain.tsx1 match

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

githubKeysmain.tsx1 match

@kyle•Updated 1 year ago
1import { fetch } from "https://esm.town/v/std/fetch";
2
3export async function githubKeys(username: string): Promise<string> {
4 const res = await fetch(`https://github.com/${username}.keys`);
5 return res.text();

myApimain.tsx1 match

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

ghProjectColumnOfIssuemain.tsx1 match

@augustohp•Updated 1 year ago
1import { ghIssueFromNodeId } from "https://esm.town/v/augustohp/ghIssueFromNodeId";
2
3export async function ghProjectColumnOfIssue(
4 nodeId: string,
5 token: string,

ghProjectFieldsFromIssuemain.tsx1 match

@augustohp•Updated 1 year ago
6 * @example ghProjectFieldsFromIssue("I_kwDOJYe5Es5qSNa2", 2, "github_pat_yadayada")
7 */
8export async function ghProjectFieldsFromIssue(
9 nodeId: string,
10 projectNumber: number,

myApimain.tsx1 match

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

myAPImain.tsx1 match

@haxzie•Updated 1 year ago
1import { untitled_ivoryPuma } from "https://esm.town/v/haxzie/untitled_ivoryPuma";
2
3export function myAPI(message) {
4 return "hello" + untitled_ivoryPuma();
5}

myApimain.tsx1 match

@vawogbemi•Updated 1 year ago
1//https://api.val.town/v1/run/vawogbemi.myApi?args=["vawogbemi","12"]
2export function myApi(name, age) {
3 return { "hi ": name, "im": age };
4}

myApimain.tsx1 match

@chrislaughlin•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
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": "*",