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/$%7Bart_info.art.src%7D?q=function&page=2094&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 30747 results for "function"(7301ms)

spagindex.html4 matches

@seventeenthmagpie•Updated 2 months ago
190 },
191 })
192 .then(function (stream) {
193 // uh oh... a promise
194 recorder = new MediaRecorder(stream);
251 );
252
253 async function fetchUploads() {
254 const response = await fetch("/api/list");
255 const data = await response.json();
257 }
258
259 async function pullUploads() {
260 refreshButton.disabled = true;
261 previewAllButton.hidden = true;
283
284 const uploadsElement = document.getElementById("uploads");
285 function renderUploads(_uploads) {
286 uploadsElement.innerHTML = "";
287

spagupload.ts1 match

@seventeenthmagpie•Updated 2 months ago
2import { sqlite } from "https://esm.town/v/stevekrouse/sqlite";
3
4export default async function(req: Request): Promise<Response> {
5 let json;
6 try {

spagserver.ts1 match

@seventeenthmagpie•Updated 2 months ago
5import upload from "./upload.ts";
6
7export default async function(req: Request): Promise<Response> {
8 const path = new URL(req.url).pathname;
9

spagLICENSE1 match

@seventeenthmagpie•Updated 2 months ago
300and execute modified versions of a covered work in that User Product from
301a modified version of its Corresponding Source. The information must
302suffice to ensure that the continued functioning of the modified object
303code is in no case prevented or interfered with solely because
304modification has been made.

spagdelete.ts1 match

@seventeenthmagpie•Updated 2 months ago
2import { sqlite } from "https://esm.town/v/stevekrouse/sqlite";
3
4export default async function(req: Request): Promise<Response> {
5 let json;
6 try {

spagindex.html4 matches

@froos•Updated 2 months ago
190 }
191 })
192 .then(function (stream) {
193 // uh oh... a promise
194 recorder = new MediaRecorder(stream);
251 );
252
253 async function fetchUploads() {
254 const response = await fetch("/api/list");
255 const data = await response.json();
257 }
258
259 async function pullUploads() {
260 refreshButton.disabled = true;
261 previewAllButton.hidden = true;
283
284 const uploadsElement = document.getElementById("uploads");
285 function renderUploads(_uploads) {
286 uploadsElement.innerHTML = "";
287

spagupload.ts1 match

@froos•Updated 2 months ago
2import { sqlite } from "https://esm.town/v/stevekrouse/sqlite";
3
4export default async function(req: Request): Promise<Response> {
5 let json;
6 try {

spagserver.ts1 match

@froos•Updated 2 months ago
5import upload from "./upload.ts";
6
7export default async function(req: Request): Promise<Response> {
8 const path = new URL(req.url).pathname;
9

spagLICENSE1 match

@froos•Updated 2 months ago
300and execute modified versions of a covered work in that User Product from
301a modified version of its Corresponding Source. The information must
302suffice to ensure that the continued functioning of the modified object
303code is in no case prevented or interfered with solely because
304modification has been made.

spagdelete.ts1 match

@froos•Updated 2 months ago
2import { sqlite } from "https://esm.town/v/stevekrouse/sqlite";
3
4export default async function(req: Request): Promise<Response> {
5 let json;
6 try {
tuna

tuna9 file matches

@jxnblk•Updated 1 week 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.