import { fetchJSON } from "https://esm.town/v/stevekrouse/fetchJSON?v=41";
export const getGithubStarsForRepo = async (username: string, project: string) => {
const res = await fetchJSON(
`https://api.github.com/repos/${username}/${project}`
);
return parseInt(res.stargazers_count);
};