githubshields.io

Adding GitHub Download Count Badge to Readme Mark Down


I would like to add a badge that counts the total number of downloads that happen for one of my projects that I have on GitHub. I came across this page that has all the image shields

https://shields.io/

![Github Releases](https://img.shields.io/github/downloads/atom/atom/latest/total.svg?style=plastic)

Any ideas on how I could add this to my project in GitHub?


Solution

  • You have to insert it as an image into your README. If your README is markdown (README.md) that should be like:

    Syntax:

    [![Github All Releases](https://img.shields.io/github/downloads/<-- User Name-->/<-- Your Repo Name-->/total.svg)]()
    

     Example

    [![Github All Releases](https://img.shields.io/github/downloads/atom/atom/total.svg)]()
    

    If you click on the badge on shields.io you can copy-paste markdown syntax you need to insert into README.md