Tip: list NPM scripts

NPM scripts are super popular these days and they are usually the main way of executing tasks in any JS repo. The challenge is that there is no standard and every project will have different options. In this quick-tip I will show you how to list scripts from the terminal.

To quickly see what scripts are available in a project you can execute npm run. This prints a list of available scripts!

npm run example

If you are using yarn, you can execute yarn run:

yarn run example