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/$%7Bsuccess?q=function&page=2131&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 22590 results for "function"(1752ms)

myApimain.tsx1 match

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

myApimain.tsx1 match

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

sassmain.tsx1 match

@jamessw•Updated 1 year ago
2 input: string;
3}
4export async function sass(args: SassArgs) {
5 const input = args.input || "a {color: #663399}";
6 const sass = await import("https://jspm.dev/sass");

myApimain.tsx1 match

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

EmailNotifIfDidntCodemain.tsx1 match

@Davidkim•Updated 1 year ago
2import { fetchJSON } from "https://esm.town/v/stevekrouse/fetchJSON?v=41";
3
4export async function EmailNotifIfDidntCode() {
5 type Data = DataItem[];
6 interface DataItem {

camelCasemain.tsx1 match

@jolodev•Updated 1 year ago
1export function camelCase(str) {
2 return str.replace(/-([a-z])/g, (g) => g[1].toUpperCase());
3}

getNextMSUrlToScrapePublicmain.tsx1 match

@tr3ntg•Updated 1 year ago
1import { getNextMSUrlToScrapePrivate } from "https://esm.town/v/tr3ntg/getNextMSUrlToScrapePrivate";
2
3export async function getNextMSUrlToScrapePublic(
4 req: express.Request,
5 res: express.Response,

myApimain.tsx1 match

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

githubFollowersmain.tsx1 match

@stungeye•Updated 1 year ago
1import { fetchJSON } from "https://esm.town/v/stevekrouse/fetchJSON?v=41";
2
3export async function githubFollowers() {
4 let followers = await fetchJSON(
5 "https://api.github.com/users/stungeye/followers",

homemain.tsx1 match

@rym•Updated 1 year ago
3
4// Access via https://api.val.town/v1/express/rym.home
5export async function home(req: express.Request, res: express.Response) {
6 const blocks = await blocks2();
7 console.log(

getFileEmail4 file matches

@shouser•Updated 1 month 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.