@artginzburg/github-user-downloads

Get total downloads of all repos by username

Usage no npm install needed!

<script type="module">
  import artginzburgGithubUserDownloads from 'https://cdn.skypack.dev/@artginzburg/github-user-downloads';
</script>

README

Purpose

Getting total number of downloads for all releases of all repositories of a GitHub user by username

Limitations

This is for testing and personal purposes only (for now)

I'm planning to build sort of an ecosystem around it later

Preparation

Assuming you have Node.JS installed

  1. Create a Personal Access Token (Following GitHub Docs)

    No scopes (permissions) needed — just the token

Testing

  1. Clone the repo
  2. Install dependencies (npm i)
  3. Set PERSONAL_ACCESS_TOKEN and USER environmental variables (use .env file if you want)
  4. Run npm start