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=fetch&page=755&format=json

For typeahead suggestions, use the /typeahead endpoint:

https://codesearch.val.run/typeahead?q=fetch

Returns an array of strings in format "username" or "username/projectName"

Found 8667 results for "fetch"(1274ms)

webscrapeBareBonesTikimain.tsx2 matches

@hurricanenate•Updated 1 year ago
1import { DOMParser, Node } from "https://esm.sh/linkedom@0.16.1";
2import { email } from "https://esm.town/v/std/email?v=9";
3import { fetchText } from "https://esm.town/v/stevekrouse/fetchText?v=5";
4
5function isHTMLElement(node: Node): node is HTMLElement {
13
14export const webscrapeBareBonesTiki = async () => {
15 const html = await fetchText(URL);
16 const document = new DOMParser().parseFromString(html, "text/html");
17

fetchVerificationEmailHtmlmain.tsx2 matches

@petermillspaugh•Updated 1 year ago
1interface FetchVerificationEmailHtmlParams {
2 email: string;
3 token: string;
5}
6
7export function fetchVerificationEmailHtml({ email, token, reVerifying }: FetchVerificationEmailHtmlParams) {
8 const confirmationLink = `https://petemillspaugh.com/email-confirmation?email=${email}&token=${token}`;
9 const html = `
1Migrated from folder: EmailSubscriptions/Signup/fetchVerificationEmailHtml

randomJokeGeneratormain.tsx4 matches

@dylanpatel16•Updated 1 year ago
1import { email } from "https://esm.town/v/std/email?v=9";
2
3// Fetches a random joke.
4async function fetchRandomJoke() {
5 const response = await fetch(
6 "https://official-joke-api.appspot.com/random_joke",
7 );
9}
10
11const randomJoke = await fetchRandomJoke();
12const setup = randomJoke.setup;
13const punchline = randomJoke.punchline;

untitled_redCatfishmain.tsx4 matches

@remelee•Updated 1 year ago
3// ... imports ...
4
5// Fetches a random joke.
6async function fetchRandomJoke() {
7 const response = await fetch(
8 "https://official-joke-api.appspot.com/random_joke",
9 );
11}
12
13const randomJoke = await fetchRandomJoke();
14const setup = randomJoke.setup;
15const punchline = randomJoke.punchline;

emailRandomJokemain.tsx4 matches

@caofanny•Updated 1 year ago
1import { email } from "https://esm.town/v/std/email?v=9";
2
3// fetches a random joke
4async function fetchRandomJoke() {
5 const response = await fetch(
6 "https://official-joke-api.appspot.com/random_joke",
7 );
9}
10
11const randomJoke = await fetchRandomJoke();
12const setup = randomJoke.setup;
13const punchline = randomJoke.punchline;

untitled_greenCrayfishmain.tsx4 matches

@mohammed•Updated 1 year ago
1import { email } from "https://esm.town/v/std/email?v=9";
2
3// Fetches a random joke.
4async function fetchRandomJoke() {
5 const response = await fetch(
6 "https://official-joke-api.appspot.com/random_joke",
7 );
9}
10
11const randomJoke = await fetchRandomJoke();
12const setup = randomJoke.setup;
13const punchline = randomJoke.punchline;

untitled_greenWoodpeckermain.tsx4 matches

@sahaj_northeastern•Updated 1 year ago
1import { email } from "https://esm.town/v/std/email?v=9";
2
3// Fetches a random joke.
4async function fetchRandomJoke() {
5 const response = await fetch(
6 "https://official-joke-api.appspot.com/random_joke",
7 );
9}
10
11const randomJoke = await fetchRandomJoke();
12const setup = randomJoke.setup;
13const punchline = randomJoke.punchline;

georgiaTechRegistrationmain.tsx1 match

@brownieinmotion•Updated 1 year ago
12 url.searchParams.set("crn_in", course);
13
14 const data = await fetch(url);
15 const text = await data.text();
16

emailRandomJokemain.tsx4 matches

@jobvengalil•Updated 1 year ago
1import { email } from "https://esm.town/v/std/email?v=9";
2
3// Fetches a random joke.
4async function fetchRandomJoke() {
5 const response = await fetch(
6 "https://official-joke-api.appspot.com/random_joke",
7 );
9}
10
11const randomJoke = await fetchRandomJoke();
12const setup = randomJoke.setup;
13const punchline = randomJoke.punchline;

fetchPaginatedData2 file matches

@nbbaier•Updated 3 weeks ago

FetchBasic1 file match

@fredmoon•Updated 3 weeks ago