Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/ducthienbui97/gitlicense
- Owner: ducthienbui97
- License: bsd-3-clause
- Created: 2017-08-06T13:21:46.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2023-11-27T14:19:14.000Z (12 months ago)
- Last Synced: 2023-11-27T15:34:39.642Z (12 months ago)
- Topics: badge, hapijs, html, license, markdown, opensource, restructuredtext
- Language: JavaScript
- Homepage: https://gitlicense.com/
- Size: 2.04 MB
- Stars: 7
- Watchers: 2
- Forks: 7
- Open Issues: 39
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
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
### 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