davglass / license-checker

Check NPM package licenses
Other
1.59k stars 215 forks source link

Add option for failing based on regex comparison against licenses --failOnRegEx #247

Open stackoverjoe opened 3 years ago

stackoverjoe commented 3 years ago

It would be helpful for organizations to be able to fail a license-check via regex expression. For example, there are many GPL licenses and an organization may want to fail if any variety is encountered. An additional option that does not interfere with the current --failOn would be ideal for handling these cases.

Fdawgs commented 1 year ago

@stackoverjoe would you be up for making this PR against https://github.com/RSeidelsohn/license-checker-rseidelsohn, which is an actively maintained fork of this?