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: 4 months 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 (about 1 year ago)
- Last Synced: 2023-11-27T15:34:39.642Z (about 1 year 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
[](https://gitlicense.com/license/ducthienbui97/gitlicense)
[](https://codeclimate.com/github/ducthienbui97/gitlicense)
[](https://travis-ci.org/ducthienbui97/gitlicense)
[](https://codecov.io/gh/ducthienbui97/gitlicense)
[](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
[](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