How do you find what scripts are defined in a project and can be executed using npm?

Experience Level: Senior
Tags: npm


There are two ways how you can find scripts that are defined in package.json and that can be executed.

Option 1

Open your command line and run the following command:

  npm run

Option 2

Open a file package.json and find the property scripts. Each property of the object that as assigned to property scripts is a script that can be executed.


No Comments Yet.
Be the first to tell us what you think.
npm for advanced users
npm for advanced users

Are you learning npm ? Try our test we designed to help you progress faster.

Test yourself