-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Show combined download counts for multiple packages? #4964
Comments
Hi! Thanks for the question. Something similar was requested for NuGet a few years back in #204 and our suggested workaround is to use the Endpoint badge, which is a way you can write your own badge data fetching logic, emit JSON, and then use Shields for formatting, rendering, and caching. It's hard to bound the number of requests or request time for a badge like this, so I think the Endpoint badge is probably a good way to accomplish this. |
I see, I'll try with the RunKit + Endpoint badge solution then, thanks! |
For anyone interested, I published an endpoint here: https://runkit.io/fezvrasta/combined-npm-downloads/1.0.0 You can use it as follows: Docs:
|
@FezVrasta |
Thank you :) |
❓ Question
Hi, is there any way to have a badge to display the combined downloads count of multiple npm packages? We changed package name and we'd like to show the total downloads rather than having two different badges (or worse, just one)
The text was updated successfully, but these errors were encountered: