Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/ducthienbui97/gitlicense

License badge for your Github repos.
https://github.com/ducthienbui97/gitlicense

badge hapijs html license markdown opensource restructuredtext

Last synced: 23 days ago
JSON representation

License badge for your Github repos.

Awesome Lists containing this project

README

        

# Git License

[![GitLicense](https://gitlicense.com/badge/ducthienbui97/gitlicense)](https://gitlicense.com/license/ducthienbui97/gitlicense)
[![Code Climate](https://codeclimate.com/github/ducthienbui97/gitlicense/badges/gpa.svg)](https://codeclimate.com/github/ducthienbui97/gitlicense)
[![Build Status](https://travis-ci.org/ducthienbui97/gitlicense.svg?branch=master)](https://travis-ci.org/ducthienbui97/gitlicense)
[![codecov](https://codecov.io/gh/ducthienbui97/gitlicense/branch/master/graph/badge.svg)](https://codecov.io/gh/ducthienbui97/gitlicense)
[![Codacy Badge](https://api.codacy.com/project/badge/Grade/e5eae132f07d4853a80dee106b481ec4)](https://www.codacy.com/app/ducthienbui97/gitlicense?utm_source=github.com&utm_medium=referral&utm_content=ducthienbui97/gitlicense&utm_campaign=Badge_Grade)

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

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

### HTML

``` html



```

### RST

``` rest
.. 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.

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

Example can be found in [this file](.gitlicense)

## Todo

- Add more test.

## Credit

- [Shields.io](https://github.com/badges) for the badges
- [Hapi](https://github.com/hapijs) for server framwork