Ahnii! I previously wrote a command line utility named ‘packages’ which simply prints a list of project dependencies on the command line.

I found that I also often want to see a list of scripts in package.json, so I wrote another utility I’ve named ‘scripts’, observe:

scripts screenshot

You can accomplish the same with ‘sed’, but it’s quite a command to remember, observe:

sed -n -e '/scripts/,/},/ p' package.json

scripts sed screenshot

Check it out at https://github.com/jonesrussell/scripts or simply install it and try:

npm i -g @jonesrussell42/scripts