Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Validator #5

Open
TheKnarf opened this issue Jul 28, 2016 · 1 comment
Open

Validator #5

TheKnarf opened this issue Jul 28, 2016 · 1 comment

Comments

@TheKnarf
Copy link

TheKnarf commented Jul 28, 2016

Would it be possible to have a valid-licenses field in package.json that npm-license-crawler could cross-check with and give me all repos that don't validate. Ex. maybe I only want to accept dependencies with MIT license. So I write the following in my package.json:

{
  "scripts": {
    "validate-license": "npm-license-crawler validate"
  },
  "valid-licenses": ["MIT"]
}

And upon running npm-license-crawler validate (or in this case npm run validate-license) it would spit out only packages not matching my list of valid-licenses.

@mwittig
Copy link
Owner

mwittig commented Jul 28, 2016

Yes, this should be possible and I think it would make license crawler a lot easier to use. I am not sure if I can take this on in the next couple of weeks as I am very busy with other work right now. If you are in the position to contribute or you know someone who is in the position to do so I'll highly appreciate this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants