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/$%7Bart_info.art.src%7D?q=function&page=1691&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 18199 results for "function"(4313ms)

1export function githubPayloadStringToNormalizedJSON(payload: string) {
2 const payloadObject = JSON.parse(payload);
3 // GitHub sends its JSON with an indentation of 2 spaces and a line break at the end

myApimain.tsx1 match

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

myApimain.tsx1 match

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

myApimain.tsx1 match

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

myApimain.tsx1 match

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

valVersionsmain.tsx1 match

@neverstew•Updated 1 year ago
2import { fetchJSON } from "https://esm.town/v/stevekrouse/fetchJSON?v=41";
3
4export function valVersions({ token, id, offset, limit }: {
5 token?: string;
6 id: string;

telegramWelcomemain.tsx1 match

@pomdtr•Updated 1 year ago
2import { secretToTelegramChat } from "https://esm.town/v/pomdtr/secretToTelegramChat";
3
4export async function telegramWelcome(req: express.Request, res: express.Response) {
5 const { message } = req.body;
6 let secret: string;

renderGithubReadmemain.tsx1 match

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

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}

getFileEmail4 file matches

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

tuna8 file matches

@jxnblk•Updated 2 weeks 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": "*",