Skip to content

Instantly share code, notes, and snippets.

@mislav
Created June 25, 2015 06:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save mislav/ca1d09ca467896d379f2 to your computer and use it in GitHub Desktop.
Save mislav/ca1d09ca467896d379f2 to your computer and use it in GitHub Desktop.
An example of using the GitHub Licenses API, currently in preview.
$ curl -s -H 'Accept: application/vnd.github.drax-preview+json' \
https://api.github.com/orgs/github/repos?per_page=100 | \
grep -A1 '"license"' | grep '"key"' | cut -d'"' -f4 | \
sort | uniq -c
5 apache-2.0
1 bsd-3-clause
2 cc0-1.0
1 gpl-2.0
56 mit
12 other
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment