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=2118&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 21753 results for "function"(1319ms)

sendToTelegrammain.tsx1 match

@pomdtr•Updated 1 year ago
3import { secretToTelegramChat } from "https://esm.town/v/pomdtr/secretToTelegramChat";
4
5export async function sendToTelegram(secret: string, message: string) {
6 const chatID = secretToTelegramChat[secret];
7 const resp = await fetch(

myApimain.tsx1 match

@byron•Updated 1 year ago
1export function myApi(name) {
2 return console.email("hello there", "email n shit");
3}

myApimain.tsx1 match

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

myApimain.tsx1 match

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

webhookmain.tsx1 match

@eric•Updated 1 year ago
2import { secretSlackWebhookEndpoint } from "https://esm.town/v/eric/secretSlackWebhookEndpoint";
3
4export let webhook = async function(req, res) {
5 const slack = secretSlackWebhookEndpoint
6 console.log("@eric.webhook", req.body)

markdownToHtmlmain.tsx1 match

@jessmartin•Updated 1 year ago
11 .use(markdown)
12 .use(remarkHtml)
13 .process(markdownToConvert, function (err, file) {
14 if (err)
15 throw err;

myApimain.tsx1 match

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

myApimain.tsx1 match

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

myApimain.tsx1 match

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

myApimain.tsx1 match

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

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.