Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@artginzburg/github-user-downloads

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@artginzburg/github-user-downloads

Get total downloads of all repos by username

  • 0.5.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
9
increased by12.5%
Maintainers
1
Weekly downloads
 
Created
Source

Purpose

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

Preparation

Assuming you have Node.JS installed

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

    No scopes (permissions) needed — just the token

Usage

As a CLI

GITHUB_TOKEN=ghp_321yourPersonalAccessToken npx @artginzburg/github-user-downloads username

if username is ommited, uses $USER environment variable instead.

As an ES module

I'm personally using it via a GitHub Action with cron to fetch my stats daily. Also, GitHub Actions provide you a GITHUB_TOKEN, with no need to create it manually.


Testing

  1. Clone the repo
  2. Install dependencies (npm i)
  3. Set GITHUB_TOKEN and USER (if your local username is not the one you want to check) environmental variables (use .env file if you want)
  4. Run npm test, or npm start username

FAQs

Package last updated on 28 Feb 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc