import { fetch } from "https://esm.town/v/std/fetch";
export let nameTopHNThread = (async () => {
const cheerio = await import("npm:cheerio");
const reply = await fetch("https://news.ycombinator.com/");
const replyText = await reply.text();
const $ = await cheerio.load(replyText);
const firstThreadTitle = $(".athing:first-child .titleline > a").first()
.text();
return firstThreadTitle;
})();