efficiently fetch (using graphql) how many stars have all repos of a user received.
echo "username" > USERNAME
echo "gh_api_token" > TOKEN
node ./github-star-count.js
notes:
- github's api token is sufficient w/o any extra permissions
- we use node's
fetch
, thusnode
version >=18 is needed- or you could install node-fetch (
npm i node-fetch@2
)
- or you could install node-fetch (