LogoJuan Manuel Allo Ron

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!

npm run example

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

yarn run example


Catch up with me on X (twitter):@juan_allo

Quick tips


X Facebook Y Combinator LinkedIn Reddit Email


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.
Promise States: Pending/Fulfilled/Rejected

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
Blurred lines of code

Callbacks in Javascript

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

@2024 Juan Manuel Allo Ron. All Rights reserved