Tip: list NPM scripts
By Juan Manuel Allo Ron on May 14, 2020

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!
If you are using yarn, you can execute yarn run
:
Enjoy!!
Catch up with me on X (twitter):@juan_allo
Share
---
Similar Articles

Weekly Digest #9: Everything you need to know about Deno
May 17, 2020
Deno is a new ECMAScript based runtime (like NodeJS) created by Ryan Dahl (who also created NodeJS)

Weekly Digest #8: On building games
May 10, 2020
Today, I want to share a list of resources I have been bookmarking to help me develop games.

Javascript as Promised
Nov 15, 2017
Promises have been there for a while now, officially released in ES6 but already being supported by most browsers before that and/or polyfiled by libraries

Callbacks in Javascript
Nov 15, 2017
Quick recap on what a JS callback is and the common problems around using them