iandotkelly / nlf

Node License Finder
MIT License
152 stars 41 forks source link

Support GNU convention for license file: COPYING #43

Open kgryte opened 8 years ago

kgryte commented 8 years ago

Currently, the implementation globs for license files having license (case insensitive) in their filename: https://github.com/iandotkelly/nlf/blob/7b9a9594cee2fe5dbb1d4c19b17e9e7e803790b7/lib/nlf.js#L321. This does not accommodate the GNU convention for a license filename: COPYING.

For an example Node.js module, see tweetnacl, which is public domain, but, for version v0.14.3, not detected as such (partly because the package.json file does not use a SPDX identifier).

tweetnacl@0.14.3 [license(s): SEE LICENSE IN COPYING.txt]
└── package.json:  SEE LICENSE IN COPYING.txt
iandotkelly commented 7 years ago

Ok - I'll add this.

kgryte commented 7 years ago

Thanks!