Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Show license on package page #254

Closed
isaacs opened this Issue · 3 comments

2 participants

@isaacs
Owner

Just whatever's in the license field. If it has a url, then link it. If it's just a type, then maybe we can link some of the bigger ones (MIT, BSD, etc.) to their text on http://opensource.org/

@robertkowalski

I would like to implement this tonight. Would that be ok for you?

@isaacs
Owner

That would be lovely :) I'll be offline most of this weekend, but there are plenty of folks in #node.js irc channel on freenode.net that can probably help if you get stuck.

@isaacs
Owner

Note that the data is kind of all over the place on packages, especially for older ones.

Check for each of licenses, licences, license, licence fields. If it's an array, take the first one. If it's a {type, url} object, link the type string to the url. If it's just a string, and it's a url, link the url. If it's a string, and not a url, then check if it's one of the common ones, and link to http://opensource.org/. "BSD" should be linked to http://opensource.org/licenses/BSD-2-Clause, but otherwise, link to http://opensource.org/licenses/${name}

@robertkowalski robertkowalski referenced this issue from a commit in robertkowalski/npm-www
@robertkowalski robertkowalski Show license on app page, fixes #254 728d286
@robertkowalski robertkowalski referenced this issue from a commit in robertkowalski/npm-www
@robertkowalski robertkowalski Show license on app page, fixes #254 9eb60f7
@robertkowalski robertkowalski referenced this issue from a commit in robertkowalski/npm-www
@robertkowalski robertkowalski Show license on app page, fixes #254 9e47eab
@isaacs isaacs closed this in 2e6d032
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.