jonschlinkert / normalize-pkg

Normalize values in package.json to improve compatibility, programmatic readability and usefulness with third party libs.
https://github.com/jonschlinkert
MIT License
18 stars 2 forks source link

Search for local LICENSE file? #6

Open pdehaan opened 10 years ago

pdehaan commented 10 years ago

More of an odd question rather than a bug...

I was looking through the inferLicenseURL() method and wasn't sure if you wanted to:

  1. Add "MPL" license (I'm biased here): http://www.mozilla.org/MPL/
  2. Search the local repo for a LICENSE file and link to that. This could be a bit mucky since it requires some OS filesystem stuff and then possibly trying to determine a fully qualified URL to said license.

I can split these out into separate GitHub issues if you want.

jonschlinkert commented 10 years ago

sure, I'm open to whatever. even adding logic that hits the file system and does a search could be fast if we whitelist some file names, and maybe use glob patterns based on those.