Skip to content

Instantly share code, notes, and snippets.

@easternbloc
Created April 15, 2016 10:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save easternbloc/fd2007600120531f1bb23cedb2129556 to your computer and use it in GitHub Desktop.
Save easternbloc/fd2007600120531f1bb23cedb2129556 to your computer and use it in GitHub Desktop.
find npm modules with large dependencies. Probably only works on npm < 3
npm list --json | jq '. as $root | .dependencies as $dep | ($root.dependencies | keys[] as $key | $key, ($root.dependencies[$key].dependencies| length))'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment