Skip to content
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

NPM Download by tag #10644

Closed
shinokada opened this issue Oct 30, 2024 · 2 comments
Closed

NPM Download by tag #10644

shinokada opened this issue Oct 30, 2024 · 2 comments
Labels
service-badge New or updated service badge

Comments

@shinokada
Copy link

📋 Description

I'd like to show NPM downloads by tag.

// to show latest download
https://img.shields.io/npm/dw/flowbite-svelte-icons@latest
// to show @v1-latest download
https://img.shields.io/npm/dw/flowbite-svelte-icons@v1-latest
@chris48s
Copy link
Member

The reason we don't do this for the npm downloads badge is because there isn't an API endpoint that exposes it.
We can call https://api.npmjs.org/downloads/point/last-week/flowbite-svelte-icons to get downloads for the package (which is what we do) but AFAIK there's no API call we can make to get downloads for a dist-tag.

@chris48s chris48s added the service-badge New or updated service badge label Oct 30, 2024
@shinokada
Copy link
Author

Thank you for your reply.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
service-badge New or updated service badge
Projects
None yet
Development

No branches or pull requests

2 participants