Skip to content

Instantly share code, notes, and snippets.

@timdp
Created April 3, 2016 13:04
Show Gist options
  • Save timdp/5d5b73b9739978d3d32aa09d8d5f7023 to your computer and use it in GitHub Desktop.
Save timdp/5d5b73b9739978d3d32aa09d8d5f7023 to your computer and use it in GitHub Desktop.
List npm dependents for all your packages
# Requirements:
# - curl
# - pup (https://github.com/ericchiang/pup)
# - npm-dependents (https://www.npmjs.com/package/npm-dependents)
curl -s 'https://www.npmjs.com/~timdp' | \
pup '.collaborated-packages a text{}' | \
xargs -n1 -I % sh -c 'echo -n %:\ ; npm-dependents % --list'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment