Skip to content

Instantly share code, notes, and snippets.

@oscarteg
Created February 20, 2025 11:48
Show Gist options
  • Save oscarteg/3c4bb767de032736b9cf4a5a265f4818 to your computer and use it in GitHub Desktop.
Save oscarteg/3c4bb767de032736b9cf4a5a265f4818 to your computer and use it in GitHub Desktop.
This oneliner finds all the package.json and shows the duplicate dependencies
fd package.json -x jq -r '"\(.dependencies + .devDependencies | to_entries | .[] | "\(.key)@\(.value)")"' {} | sort | uniq -d
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment