Last active
May 17, 2021 11:08
-
-
Save tomoemon/98584c087d5f28d67996568f67514f26 to your computer and use it in GitHub Desktop.
list package license
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# js/ts npm package | |
## Command | |
``` | |
jq -r ".dependencies | keys | .[]" package.json | xargs -I{} npm view {} name license | |
``` | |
## Example | |
``` | |
$ jq -r ".dependencies | keys | .[]" package.json | xargs -I{} npm view {} name license | |
name = 'compare-versions' | |
license = 'MIT' | |
email-validator | |
name = 'immer' | |
``` | |
# golang | |
https://github.com/google/go-licenses |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment