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=fetch&page=399&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 7881 results for "fetch"(1551ms)

interview_practicemain.tsx1 match

@slinfo•Updated 4 months ago
90
91 try {
92 const response = await fetch("/ask", {
93 method: "POST",
94 headers: {

mullerIntuitivmain.tsx2 matches

@dotim•Updated 4 months ago
1import { fetch } from "https://esm.town/v/std/fetch";
2
3interface BaseResponse {
64
65 private static async makeRequest<T>(endpoint: string, options: RequestInit): Promise<T> {
66 const response = await fetch(`${this.BASE_URL}${endpoint}`, options);
67 const data = await response.json();
68 if (!response.ok) {

tempomain.tsx3 matches

@dotim•Updated 4 months ago
1import { fetch } from "https://esm.town/v/std/fetch";
2
3export enum TempoColorCode {
18
19 static async getToday(): Promise<TempoResponse> {
20 const response = await fetch(this.BASE_URL + "/today");
21 if (!response.ok) {
22 throw new Error(`Impossible de récupérer les informations du jour : ${response.statusText}`);
27
28 static async getTomorrow(): Promise<TempoResponse> {
29 const response = await fetch(this.BASE_URL + "/tomorrow");
30 if (!response.ok) {
31 throw new Error(`Impossible de récupérer les informations du lendemain : ${response.statusText}`);

ntfymain.tsx2 matches

@dotim•Updated 4 months ago
1import { fetch } from "https://esm.town/v/std/fetch";
2
3export class NtfyService {
20 }
21
22 const response = await fetch("https://ntfy.sh/" + Deno.env.get("NTFY_CHANNEL"), {
23 method: "POST",
24 body: message,

dot_commain.tsx1 match

@aginfer•Updated 4 months ago
88 break;
89 default:
90 return fetch(
91 `https://stevekrouse.github.io/${url.pathname}${url.search}`,
92 request as any as RequestInit,

coherentBlackBisonmain.tsx1 match

@krown500•Updated 4 months ago
182
183 try {
184 const response = await fetch("/", {
185 method: "POST",
186 body: JSON.stringify({

cerebras_codermain.tsx1 match

@bau•Updated 4 months ago
182
183 try {
184 const response = await fetch("/", {
185 method: "POST",
186 body: JSON.stringify({

praiseworthyAquamarineHaremain.tsx1 match

@krown500•Updated 4 months ago
182
183 try {
184 const response = await fetch("/", {
185 method: "POST",
186 body: JSON.stringify({

stylishSalmonTortoisemain.tsx1 match

@krown500•Updated 4 months ago
182
183 try {
184 const response = await fetch("/", {
185 method: "POST",
186 body: JSON.stringify({

cerebras_codermain.tsx1 match

@krown500•Updated 4 months ago
182
183 try {
184 const response = await fetch("/", {
185 method: "POST",
186 body: JSON.stringify({

fetchPaginatedData2 file matches

@nbbaier•Updated 1 week ago

FetchBasic1 file match

@fredmoon•Updated 1 week ago