normalize-pkg icon indicating copy to clipboard operation
normalize-pkg copied to clipboard

find an API or site that provides JSON for licenses

Open jonschlinkert opened this issue 11 years ago • 3 comments

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.

jonschlinkert avatar Mar 29 '14 21:03 jonschlinkert

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.

pdehaan avatar Mar 29 '14 22:03 pdehaan

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.

jonschlinkert avatar Mar 29 '14 22:03 jonschlinkert

done. https://github.com/okfn/licenses

jonschlinkert avatar Mar 30 '14 01:03 jonschlinkert