-
-
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
npm total downloads support #519
Conversation
any updates on this one? |
} else { | ||
badgeData.colorscheme = 'brightgreen'; | ||
} | ||
sendBadge(format, badgeData); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could we include that piece in the try block please?
Thanks for contributing! This looks great! If you could use 2-space indentation to stay consistent with the rest, it would be great. |
Thanks, I'll be able to do the changes 2 days from now and I'll update the pull request. |
|
In this particular case, it is a bit irrelevant. In the general case, escaping & is not necessary in the path. See the difference between https://img.shields.io/badge/build-%26passing-brightgreen.svg?label=test%26 and https://img.shields.io/badge/build-&passing-brightgreen.svg?label=test&. Thanks! |
Thanks for the merge. |
That's the best reason!
In 24h. That way, even when I'm on a bad day, I have the next day to realize if there's something I did wrong. |
Great, thanks a lot. |
This adds support for the total downloads for the given project.
I use the range rest service of npm to fetch the info.