1
2
3
4
5
6
7
import { githubStars } from "https://esm.town/v/sourishkrout/githubStars";
export async function getRunmeTotals(bearer?: string): Promise<number> {
return (await Promise.all(
[["stateful", "runme"]].map(([h, r]) => githubStars(h, r, bearer)),
)).reduce((a, b) => a + b, 0);
}
Val Town is a social website to write and deploy JavaScript.
Build APIs and schedule functions from your browser.
Comments
Nobody has commented on this val yet: be the first!
May 29, 2024