Skip to content

Instantly share code, notes, and snippets.

@tetkuz
Last active July 30, 2024 00:43
Show Gist options
  • Save tetkuz/f62af63443f65d846ba2ae211eef949c to your computer and use it in GitHub Desktop.
Save tetkuz/f62af63443f65d846ba2ae211eef949c to your computer and use it in GitHub Desktop.
one liner for package.json to csv
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