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 - npm Package Compare versions

Comparing version 0.3.0 to 0.4.0

9

package.json
{
"name": "@artginzburg/github-user-downloads",
"version": "0.3.0",
"version": "0.4.0",
"description": "Get total downloads of all repos by username",

@@ -13,10 +13,7 @@ "license": "ISC",

},
"main": "endpoint.js",
"scripts": {
"start": "node test",
"test": "node app"
"start": "node test"
},
"dependencies": {
"@octokit/rest": "^18.12.0",
"express": "^4.17.1"
"@octokit/rest": "^18.12.0"
},

@@ -23,0 +20,0 @@ "devDependencies": {

@@ -1,17 +0,27 @@

# Custom GitHub user total downloads badge for everyone!
# Purpose
Use the following URL and change `:user` at the end to the username of a GitHub user
Getting total number of downloads
for all releases
of all repositories
of a GitHub user
by username
```
https://img.shields.io/endpoint?url=https://artginzburg.runkit.io/github-user-downloads/branches/master/:user
```
## Limitations
## Example
This is for testing and personal purposes only (for now)
Using Markdown syntax:
`![](https://img.shields.io/endpoint?url=https://artginzburg.runkit.io/github-user-downloads/branches/master/artginzburg)`
> I'm planning to build sort of an ecosystem around it later
Outputs this:
<sub>![](https://img.shields.io/endpoint?url=https://artginzburg.runkit.io/github-user-downloads/branches/master/artginzburg)</sub>
# Preparation
> You can still style the badge however you want as documented at https://shields.io/#styles
> Assuming you have Node.JS installed
1. Create a Personal Access Token (Following [GitHub Docs](https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/creating-a-personal-access-token))
> 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`

@@ -1,2 +0,2 @@

const getUserDownloads = require('./index');
const getUserDownloads = require('./');

@@ -3,0 +3,0 @@ require('dotenv').config();

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