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=749&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 7802 results for "function"(662ms)

twitterAlertREADME.md1 match

@charmaine•Updated 3 months ago
54This val uses the SocialData API for Twitter data:
55- **Proxies via Val Town's SocialDataProxy**: Limited to 100 calls/day for [**Val Town Pro users**](https://www.val.town/pricing).
56- **Need more calls?** Sign up for your own [SocialData API token](https://socialdata.tools) and configure the [`socialDataSearch`](https://www.val.town/v/stevekrouse/socialDataSearch) function.

courteousAzureSquirrelmain.tsx1 match

@charmaine•Updated 3 months ago
11});
12
13function getStripeCustomer(customerId: string) {
14 return stripe.customers.retrieve(customerId);
15}

stripeWebsocketDemotriggerUtils1 match

@wolf•Updated 3 months ago
5console.log(await valUrlToId(import.meta.url));
6
7export async function bindToHandler(handlerId: string) {
8 const thisValId = await valUrlToId(import.meta.url);
9 return;

stripeWebsocketDemostripeHandler1 match

@wolf•Updated 3 months ago
2import { valUrlToId } from "https://esm.town/v/wolf/valUrlToId?v=39";
3
4export async function bindToHandler(handlerId: string) {
5 const thisValId = await valUrlToId(import.meta.url);
6 const actions = new Set<string>(await blob.getJSON(handlerId));

stripeWebsocketDemostripeTrigger1 match

@wolf•Updated 3 months ago
9);
10
11export async function trigger(req: Request): Promise<Response> {
12 const url = new URL(req.url);
13
11});
12
13function getStripeCustomer(customerId: string) {
14 return stripe.customers.retrieve(customerId);
15}
11});
12
13function getStripeCustomer(customerId: string) {
14 return stripe.customers.retrieve(customerId);
15}

isMyWebsiteDownmain.tsx1 match

@charmaine•Updated 3 months ago
6);
7
8export async function uptimeCheck(url: string) {
9 let ok = true;
10 let reason: string;

newStripeSubscribermain.tsx1 match

@charmaine•Updated 3 months ago
11});
12
13function getStripeCustomer(customerId: string) {
14 return stripe.customers.retrieve(customerId);
15}

newStripeEventmain.tsx1 match

@charmaine•Updated 3 months ago
11});
12
13function getStripeCustomer(customerId: string) {
14 return stripe.customers.retrieve(customerId);
15}

getFileEmail4 file matches

@shouser•Updated 6 days ago
A helper function to build a file's email

TwilioHelperFunctions

@vawogbemi•Updated 2 months ago