-
Notifications
You must be signed in to change notification settings - Fork 5.4k
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
Listing dependencies licenses with deno ? #9786
Comments
How do you know that you are allowed to use code you import in a web page in a browser? Deno is no different. |
Usually you need to read the license terms when using someone's else code. Some licenses like GPL force you to keep the same license for derivative works, so you wouldn't be able to relicense your work under MIT license for example. It does not matter that much for hobby projects, but I guess if you were making a commercial project it would be useful to be able to review easily which licenses are used by the code you didn't wrote to ensure you're not violating anyone's rights |
I believe this is outside of scope for Deno and should be solved by a third party module. |
I guess it isn't as easy as with NodeJS since libraries don't have an " It would have been nice to have it in the toolchain since you can already review dependencies and versions, but I understand that it may be hard to implement and maybe a third party module would indeed be a better fit inside |
"versions" are simply URLs... there is no logic in Deno that holds any opinions to what a "version" is. It is up to the package registry to put semantic meaning into what a URL represents, and likely the best solution for this feature. |
Closing for now, as it is not actionable for Deno. |
It would be nice if deno had a cli command to list all dependencies licenses.
This is especially useful to automate licenses compliancy when using third-party modules.
It doesn't need to be bullet-proof but usually most licenses files can be retrieved through by appending
LICENSE
to module url.I'm currently using a workaround using which use
deno info
to list dependencies and try to fetch licenses files (see below) but it's kind of hacky(example)
Output:
Code:
I think it would fit well in
deno info
, since if you want to check dependencies, you may also want to see if you're allowed to use them or not.The text was updated successfully, but these errors were encountered: