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!

Image of Datadog

The Essential Toolkit for Front-end Developers

Take a user-centric approach to front-end monitoring that evolves alongside increasingly complex frameworks and single-page applications.

Get The Kit

Top comments (0)

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay