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=1786&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 18163 results for "function"(1994ms)

emailTestmain.tsx1 match

@darrenforevr•Updated 1 year ago
1export async function emailTest() {
2 console.email("test email");
3 return "emailed";

ghAddAssigneesToAssignablemain.tsx1 match

@augustohp•Updated 1 year ago
1export async function ghAddAssigneesToAssignable(
2 assignableId: string,
3 assigneeIds: string[],

testmain.tsx1 match

@janpaul123•Updated 1 year ago
1export function test(a) {
2 return a * a;
3}

checkAndroidBingAppsmain.tsx1 match

@cescyang•Updated 1 year ago
2import { rule } from "https://esm.town/v/cescyang/rule";
3
4export async function checkAndroidBingApps() {
5 const { default: axios } = await import("npm:axios");
6 const url =

roamFormmain.tsx1 match

@ryanguill•Updated 1 year ago
43<script>
44// Assign to individual textarea (most efficient)
45document.getElementById("contents").addEventListener('keydown', function(e) {
46 if(e.keyCode == 13 && e.metaKey) {
47 this.form.submit();

myApimain.tsx1 match

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

getDateLocaleStringmain.tsx1 match

@ImGqb•Updated 1 year ago
3// get search params locales=zh-cn&hour12=true
4// post body params JSON.stringify({locales: "zh-cn", hour12: true})
5export function getDateLocaleString(params) {
6 if (typeof params !== "object") {
7 params = parseSearchParams(params);

pollRSSFeedsmain.tsx1 match

@rodrigotello•Updated 1 year ago
2import { rssFeeds } from "https://esm.town/v/rodrigotello/rssFeeds";
3
4export function pollRSSFeeds({ lastRunAt }) {
5 return Promise.all(
6 Object.entries(rssFeeds).map(async ([name, url]) => {

boundsmain.tsx1 match

@ingenieroariel•Updated 1 year ago
2
3// View at https://ingenieroariel-bounds.express.val.run?country=UG
4export async function bounds(req: express.Request, res: express.Response) {
5 const selected_country =
6 countries[req.query.country];

myApimain.tsx1 match

@jackbridger•Updated 1 year ago
1export function myApi(name) {
2 return "hi " + name + " want to come on Scaling DevTools?";
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": "*",