Created
June 25, 2015 06:11
-
-
Save mislav/ca1d09ca467896d379f2 to your computer and use it in GitHub Desktop.
An example of using the GitHub Licenses API, currently in preview.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ 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