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=1023&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 10292 results for "function"(546ms)

myApimain.tsx1 match

@parweb•Updated 1 year ago
1import { myApi as myApi2 } from "https://esm.town/v/parweb/myApi";
2
3export function myApi(name) {
4 return myApi2("chris");
5}

pushovermain.tsx1 match

@meatcar•Updated 1 year ago
3// Send a pushover message.
4// token, user, and other opts are as specified at https://pushover.net/api
5export async function pushover({ token, user, message, title, url, ...opts }) {
6 return await fetch("https://api.pushover.net/1/messages.json", {
7 method: "POST",

myApimain.tsx1 match

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

messagememain.tsx1 match

@endingwithali•Updated 1 year ago
1import { message as message2 } from "https://esm.town/v/endingwithali/message";
2
3export function messageme(message) {
4 message2.push(message);
5}

myApimain.tsx1 match

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

myApimain.tsx1 match

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

qq_svgmain.tsx1 match

@envl•Updated 1 year ago
2import { calc_qq_string } from "https://esm.town/v/envl/calc_qq_string";
3
4export async function qq_svg(req: Request) {
5 const url = new URL(req.url);
6 const [user, repo] = url.pathname.substring(1).split("/");

myApimain.tsx1 match

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

myApimain.tsx1 match

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

fetchRssmain.tsx1 match

@pdebie•Updated 1 year ago
2
3// This supports more RSS types than @stevekrouse.fetchRSS
4export async function fetchRss(url: string, lastRunDate?: string | number) {
5 let Parser = await import("npm:rss-parser");
6 let parser = new Parser.default();

getFileEmail4 file matches

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

TwilioHelperFunctions

@vawogbemi•Updated 2 months ago