-
Notifications
You must be signed in to change notification settings - Fork 43
Open
Labels
type-enhancementA request for a change that isn't a bugA request for a change that isn't a bug
Description
Result from running analysis on pub.dev
11176 MIT
4378 unknown
4351 null
4124 BSD-3-Clause
2116 Apache-2.0
949 BSD-2-Clause
420 GPL-3.0
83 MPL-2.0
73 LGPL-3.0
69 Unlicense
58 AGPL-3.0
25 BSD-2-Clause-Views
21 LGPL-2.1
7 WTFPL
7 EUPL-1.2
6 CPL-1.0
6 CC0-1.0
5 OFL-1.1
4 Zlib
4 BSL-1.0
3 EPL-2.0
3 CC-BY-4.0
3 Artistic-2.0
2 OpenSSL
2 MulanPSL-2.0
2 MulanPSL-1.0
2 Hippocratic-2.1
2 CC-BY-SA-4.0
2 AFL-3.0
1 X11
1 W3C-20150513
1 UPL-1.0
1 MS-PL
1 EPL-1.0
1 CC-BY-SA-3.0
1 CC-BY-NC-SA-3.0
1 BSD-4-Clause
Code for running this analysis:
get_license() {
curl -s "https://pub.dev/api/packages/$1/metrics" | jq .scorecard.panaReport.licenseFile.name -r ;
}
export -f get_license
curl -s https://pub.dev/api/package-names | jq .packages[] -r | parallel -j 50 get_license > /tmp/detected-licenses
cat /tmp/detected-licenses | sort | uniq -c | sort -n -r
This should be easy to tweak to get names of the packages..
Metadata
Metadata
Assignees
Labels
type-enhancementA request for a change that isn't a bugA request for a change that isn't a bug