Versions

  • v0

    11/5/2024
    Open: Version
    +10
    -0

    import { email } from "https://esm.town/v/std/email";
    import { fetchJSON } from "https://esm.town/v/stevekrouse/fetchJSON";

    export async function dailyDadJoke() {
    let { setup, punchline } = await fetchJSON("https://official-joke-api.appspot.com/random_joke");
    return email({
    text: punchline,
    subject: setup,
    });
    }
1
Next
Updated: November 5, 2024