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=2820&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 29307 results for "function"(7381ms)

arraysAreIdenticalmain.tsx1 match

@g000m•Updated 1 year ago
1export function arraysAreIdentical(arr1, arr2) {
2 if (arr1.length !== arr2.length) {
3 return false;

myApimain.tsx1 match

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

myApimain.tsx1 match

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

convertmain.tsx1 match

@dean•Updated 1 year ago
1export function convert(number, fromUnit, toUnit) {
2 const conversionRates = {
3 // Length

myApimain.tsx1 match

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

polygonPriceOnWeekdayMsAgomain.tsx1 match

@rwev•Updated 1 year ago
3import { msToIsoDate } from "https://esm.town/v/rwev/msToIsoDate";
4
5export async function polygonPriceOnWeekdayMsAgo(ticker, msAgo) {
6 const date = msToIsoDate(
7 adjustMsToWeekday(Date.now() - msAgo)

myApimain.tsx1 match

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

myApimain.tsx1 match

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

valVersionmain.tsx1 match

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

hnFollowPollJobmain.tsx1 match

@ritz•Updated 1 year ago
3import { hnLatestPosts } from "https://esm.town/v/stevekrouse/hnLatestPosts?v=18";
4
5export async function hnFollowPollJob({ lastRunAt }) {
6 let posts = await hnLatestPosts({
7 authors: hackerNewsAuthors,
tuna

tuna9 file matches

@jxnblk•Updated 1 day ago
Simple functional CSS library for Val Town

getFileEmail4 file matches

@shouser•Updated 1 month ago
A helper function to build a file's email
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.