Permalink
Find file
Fetching contributors…
Cannot retrieve contributors at this time
34 lines (23 sloc) 693 Bytes

GitLicense

REST API for discovering the license for a github repository.

Usage

curl -i http://gitlicense.herokuapp.com/{user}/{repo}

The return value will be a JSON object of the following form.

{
    repo: ":user",
    user: ":repo",
    license: "MIT License"
}

Supported Licenses

  • MIT license (MIT)
  • ISC License (ISC)
  • Apache License 2.0 (Apache-2.0)
  • GNU General Public License, version 2 (GPL-2.0)
  • GNU General Public License, version 3 (GPL-3.0)
  • GNU AFFERO GENERAL PUBLIC LICENSE, Version 3 (AGPL-3.0)
  • BSD License
  • Modified BSD License
  • Artisitic License 2.0
  • Mozilla Public License

TODO

  • Improve the license matching algorithm