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

Checking license of other package/repository #1

Open
Ovyerus opened this issue Feb 18, 2020 · 0 comments
Open

Checking license of other package/repository #1

Ovyerus opened this issue Feb 18, 2020 · 0 comments
Labels
enhancement New feature or request

Comments

@Ovyerus
Copy link
Owner

Ovyerus commented Feb 18, 2020

There's several other packages available that allow trying to find the license of a particular npm package or git repository. It might be cool to integrate something similar into license to help make it an all-in-one experience.

Usage could look something like license check [@scope/]package for checking an npm package, and license check user/repo for checking a GitHub repository. Ideally would also want to support any other Git provider without needing to be locked into just GitHub, via just a url I presume.
(Note to self: research to see if we can get info about a remote repo through Git without needing to locally clone it, would probably help with performance in this respect)

Idea

Also add a flag to try and check the compatibility of a package's license with another license, would be useful for companies or individuals who need to ensure that dependencies are compatible with a specific license - e.g. GPL.

Would probably be named something along the lines of --check-compatibility or --compatibility-with, e.g. license check MIT --compatibility-with GPL (and add a shorthand of course, -c).


Also expose it as through the API like with getLicense so users don't need to install an extra package.

@Ovyerus Ovyerus added the enhancement New feature or request label Feb 18, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant