/gitlicense

License badge for your Github repos.

Primary LanguageJavaScriptBSD 3-Clause "New" or "Revised" LicenseBSD-3-Clause

Git License

GitLicense Code Climate Build Status codecov Codacy Badge

License badge for your Github repos.

Usage

Git License give you a easy way to display license on github. We use github license api to get license of you repo.

Markdown

[![GitLicense](https://gitlicense.com/badge/:user/:repo)](https://gitlicense.com/license/:user/:repo)

HTML

<a href="https://gitlicense.com/license/:user/:repo">
    <img src="https://gitlicense.com/badge/:user/:repo"/>
</a>

RST

.. image:: https://gitlicense.com/badge/:user/:repo
 :target: https://gitlicense.com/license/:user/:repo

If Github api can't provide your repo's license, your repo have to have a .gitlicense file with following patern in order to be recognised.

{
    "license" : "License name",
    "url" : "License url"
}

Example can be found in this file

Todo

  • Add more test.

Credit