DEV Community

Russell Jones
Russell Jones

Posted on • Originally published at blog.jonesrussell42.xyz on

Quickly view nodejs project ‘scripts’ on the cli

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

Enter fullscreen mode Exit fullscreen mode

scripts sed screenshot

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

npm i -g @jonesrussell42/scripts

Enter fullscreen mode Exit fullscreen mode

Meegwetch!

Top comments (0)