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/?q=function&page=1695&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 17935 results for "function"(1135ms)

myApimain.tsx1 match

@gjuggler•Updated 1 year ago
1export function myApi(name) {
2 return "hi " + name;
3}
1let { innerfeelingscounter } = await import("https://esm.town/v/politelyinvinciblepointer/innerfeelingscounter");
2
3export function increaseinnerfeelingscounter() {
4 innerfeelingscounter++;
5}

hnFollowPollJobmain.tsx1 match

@sunkid•Updated 1 year ago
1import { fetch } from "https://esm.town/v/std/fetch";
2
3export async function hnFollowPollJob({ lastRunAt }) {
4 untitled6313446 = fetch(
5 "https://market-backend.api.2gis.ru/5.0/product/items?q=water&point1=37.87550034485333,51.32652258650344&point2=37.94900977933917,51.293266520365684&locale=ru_RU&page=1&page_size=12&feature_config=categories_without_fake_first_level,range_price_type_supported,from_price_type_supported"

myApimain.tsx1 match

@matallo•Updated 1 year ago
1export function myApi(name) {
2 console.email;
3 return "hi " + name;

writeToKvStoremain.tsx1 match

@liamdanielduffy•Updated 1 year ago
1let { testKVStore } = await import("https://esm.town/v/liamdanielduffy/testKVStore");
2
3export function writeToKvStore(key, value) {
4 testKVStore = {
5 ...testKVStore,

finish_todaymain.tsx1 match

@gaetgu•Updated 1 year ago
8 }
9 var date = new Date();
10 // Rest days are handled in a separate, scheduled function.
11 switch (date.getDay()) {
12 case 0:

expressHTMLExample2main.tsx1 match

@henrik•Updated 1 year ago
2
3// View at https://api.val.town/express/@stevekrouse.expressHTMLExample?name=Steve
4export async function expressHTMLExample2(
5 req: express.Request,
6 res: express.Response

myApimain.tsx1 match

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

myApimain.tsx1 match

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

likesmain.tsx1 match

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

getFileEmail4 file matches

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

tuna8 file matches

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