normalize-pkg
normalize-pkg copied to clipboard
find an API or site that provides JSON for licenses
It would be nice to not have to factor in logic for all of the possible permutations of licenses out there. we can just implement logic for finding the right one in a given list.
https://www.npmjs.org/doc/json.html#license has references to:
- https://spdx.org/licenses/
- http://opensource.org/licenses/alphabetical
Not sure if either of those are "great" since they don't seem to have links to the license project's homepage or have plain/text versions of the licenses.
Thanks! yeah I looked at those yesterday and as a last resort I think the opensource.org page would be okay. I can just scrape it and generate a JSON list.
done. https://github.com/okfn/licenses