githubStars
Script
v1
Fork
1
2
3
4
5
6
import
{
fetch
}
from
"https://esm.town/v/std/fetch"
;
export
async
function
githubStars
(
username
)
{
let
res
=
await
fetch
(
`https://api.github.com/users/
${
username
}
/starred`
)
;
return
await
res
.
json
(
)
;
}