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/image-url.jpg%20%22Optional%20title%22?q=function&page=1820&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 18507 results for "function"(1976ms)

pageIncludesmain.tsx1 match

@glen•Updated 1 year ago
1import { fetch } from "https://esm.town/v/std/fetch";
2
3export let pageIncludes = async function (url, str) {
4 const f = await fetch(url);
5 const t = await f.text();

formatCurrencymain.tsx1 match

@frankdilo•Updated 1 year ago
1export function formatCurrency(
2 amount: number,
3 decimalDigits: number = 2,

myApimain.tsx1 match

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

myApimain.tsx1 match

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

myApimain.tsx1 match

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

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();

getFileEmail4 file matches

@shouser•Updated 2 weeks 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
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.