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

Search for local LICENSE file?

Open pdehaan opened this issue 10 years ago • 1 comments

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.

pdehaan avatar Mar 29 '14 20:03 pdehaan

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.

jonschlinkert avatar Mar 29 '14 21:03 jonschlinkert