1
2
3
4
5
import { fetchJSON } from "https://esm.town/v/stevekrouse/fetchJSON";
export let hnGetPost = (id) => fetchJSON(
`https://hacker-news.firebaseio.com/v0/item/${id}.json?print=pretty`
)