npms-io / npms-analyzer

The analyzer behind https://npms.io
MIT License
319 stars 38 forks source link

Correctly detect packages with custom licenses #237

Open Shyiy opened 5 years ago

Shyiy commented 5 years ago

Currently only licenses that are defined as a valid (or almost) SPDX license name are detected. As per official NPM documentation it's possible to specify a license by also setting it to "SEE LICENSE IN ". I believe such a license should also be accepted, either by parsing the string or simply by looking at the presence of a standard LICENSE file in the root of the project.