Skip to content

Instantly share code, notes, and snippets.

@jaybuidl
Last active December 14, 2021 15:16
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 jaybuidl/81b01616b8c0e81439302b3a9bbacad2 to your computer and use it in GitHub Desktop.
Save jaybuidl/81b01616b8c0e81439302b3a9bbacad2 to your computer and use it in GitHub Desktop.
Shows the dependencies between Kleros NPM packages
#!/bin/bash
npm list -g npm-dependants || npm install -g npm-dependants
for p in $(npm search @kleros --parseable | cut -f1 | sort)
do
echo $p
npm-dependants $p | sed 's/^/├─ /g'
echo
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment