1import { fetchJSON } from "https://esm.town/v/stevekrouse/fetchJSON?v=41";
2
3// Github following
4export let githubFollowing = fetchJSON(
5 "https://api.github.com/users/stevekrouse/following"
6);
1import { fetch } from "https://esm.town/v/std/fetch";
2
3export const scrapValue = async (url, selector, attr) => {
5 "https://deno.land/x/deno_dom/deno-dom-wasm.ts"
6 );
7 let doc = await (await fetch(url)).text();
8 const document = new DOMParser().parseFromString(doc, "text/html");
9 return document.querySelector(selector).getAttribute(attr);
1import { fetchJSON } from "https://esm.town/v/stevekrouse/fetchJSON?v=41";
2
3export let aqi = async () => {
4 let pm25 = (
5 await fetchJSON(
6 "https://api.openaq.org/v2/latest?" +
7 new URLSearchParams({
1import { fetchText } from "https://esm.town/v/stevekrouse/fetchText?v=5";
2
3export const cryptoFearAndGreedIndex = async () => {
4 const { default: cheerio } = await import("npm:cheerio");
5 const html = await fetchText(
6 "https://alternative.me/crypto/fear-and-greed-index/",
7 );
1import { fetch } from "https://esm.town/v/std/fetch";
2
3export let catFactGetter = () => {
13};
14
15fetch('https://catfact.ninja/fact?max_length=140', requestOptions)
16 .then(response => response.json())
17 .then(result => {
1import { fetch } from "https://esm.town/v/std/fetch";
2
3export const getRaycastDownloadCount = (async () => {
6 );
7 const url = "https://www.raycast.com/tailscale/tailscale";
8 const response = await fetch(url);
9 const html = await response.text();
10 const document = new DOMParser().parseFromString(html, "text/html");
1import { fetchJSON } from "https://esm.town/v/stevekrouse/fetchJSON?v=41";
2
3// GitHub starred repos
4export let githubStarred = fetchJSON(
5 "https://api.github.com/users/stevekrouse/starred?per_page=10",
6);
1import { fetch } from "https://esm.town/v/std/fetch";
2import { emailWebhookMap } from "https://esm.town/v/neverstew/emailWebhookMap";
3
18 resolve(false);
19 }, 3000);
20 fetch(destination).then((x) => {
21 console.log(`Delivered to ${destination}`);
22 }).catch((x) => {
1import { fetch } from "https://esm.town/v/std/fetch";
2
3export const secretEndpointSuccess = fetch(
4 "https://neverstew-secretEndpoint.web.val.run",
5 { headers: { Authorization: "birdsarentreal" } },
1import { searchParams } from "https://esm.town/v/mgruel/searchParams";
2import { fetchJSON } from "https://esm.town/v/mgruel/fetchJSON";
3
4type Reference = {
24 limit?: Date;
25}): Promise<Reference[]> {
26 const data = await fetchJSON<Reference[]>(
27 "https://api.val.town/v1/me/references?" +
28 searchParams({