1import { fetchJavascriptWeeklyIssues } from "https://esm.town/v/Timmy/fetchJavascriptWeeklyIssues";
2
3export const getIssueNumber = (async () => {
5 "https://deno.land/x/deno_dom@v0.1.38/deno-dom-wasm.ts"
6 );
7 const domText = await fetchJavascriptWeeklyIssues;
8 const document = new DOMParser().parseFromString(domText, "text/html");
9 const divIssues = document.querySelector(".issue");
1import { fetch } from "https://esm.town/v/std/fetch";
2
3export async function getReiseauskunftTrain(url) {
12 return cleaned === "" ? undefined : cleaned;
13 }
14 return fetch(url)
15 .then((res) => res.text())
16 .then((html) => new DOMParser().parseFromString(html, "text/html"))
1import { fetchJSON } from "https://esm.town/v/stevekrouse/fetchJSON?v=41";
2
3// GitHub followers
4export let githubFollowers = fetchJSON(
5 "https://api.github.com/users/stevekrouse/followers"
6);
1import { fetchJSON } from "https://esm.town/v/stevekrouse/fetchJSON?v=41";
2
3export const getGithubUser = async (username: string) => {
4 const user = await fetchJSON(
5 `https://api.github.com/users/${username}`,
6 );
1import { fetchJSON } from "https://esm.town/v/stevekrouse/fetchJSON?v=41";
2
3// Predict the nationality of a name
4export let nameNationality = fetchJSON(
5 "https://api.nationalize.io/?name=michael"
6);
1import { fetch } from "https://esm.town/v/std/fetch";
2
3export let bbc6MusicSpotifyRedirect = async (req: Request) => {
4 const response = await fetch("https://6music.sharpshooterlabs.com/");
5 const html = await response.text();
6 const rawUrl = html
3 const app = new Elysia()
4 .get("/", () => "Hello Elysia");
5 return app.fetch(req);
6};
1import { fetch } from "https://esm.town/v/std/fetch";
2
3export const secretEndpointFailure = fetch(
4 "https://neverstew-secretEndpoint.web.val.run",
5);
1import { fetch } from "https://esm.town/v/std/fetch";
2import { prettifyTS } from "https://esm.town/v/pomdtr/prettifyTS";
3
4export async function openapi2TS(url: string) {
5 const yaml = await import("npm:yaml");
6 const resp = await fetch(url);
7 const spec = yaml.parse(await resp.text());
8 return prettifyTS(
1import { fetchJSON } from "https://esm.town/v/mgruel/fetchJSON";
2
3export function nominatimSearch(params: {
10 postalcode?: string;
11} = {}) {
12 return fetchJSON(
13 "https://nominatim.openstreetmap.org/search?" +
14 new URLSearchParams({