Skip to content

Instantly share code, notes, and snippets.

@chernjie
Last active February 7, 2021 22:41
Show Gist options
  • Select an option

  • Save chernjie/46983c4bc7c07b77014a5ae60065ca1a to your computer and use it in GitHub Desktop.

Select an option

Save chernjie/46983c4bc7c07b77014a5ae60065ca1a to your computer and use it in GitHub Desktop.
#!/usr/bin/env bash
for i in $(git ls-files | grep package.json | xargs -n1 dirname)
do
cd $i > /dev/null
npm ls $@ &
cd - > /dev/null
done
wait
for i in $@
do
npm info $i &
done
wait
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment