Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Recursively get every dependency and version from package-lock.json
cat package-lock.json | jq -r '.. | select(.>={}) | .dependencies | select(. != null) | to_entries[] | .key + ": " + .value.version' | sort | uniq
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.