Last active
July 30, 2024 00:43
-
-
Save tetkuz/f62af63443f65d846ba2ae211eef949c to your computer and use it in GitHub Desktop.
one liner for package.json to csv
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
find | grep package.json | xargs -I{} sh -c 'jq -r ".dependencies | to_entries | map(\"\(.key),\(.value)\") | .[]" {} > ~/$(dirname {} | xargs basename)-package.csv' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment