1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
import { dataToRSS } from "https://esm.town/v/joshmock/dataToRSS";
import { githubStars } from "https://esm.town/v/joshmock/githubStars";
export async function githubStarsRSS(username) {
let data = await githubStars(username);
return await dataToRSS(data, {
title: `Starred Github Repos - ${username}`,
link: `https://github.com/${username}?tab=stars`,
description: "Starred Github repos",
keys: {
title: "full_name",
description: "description",
link: "html_url",
pubDate: "created_at",
},
});
}