Suhail Gupta
Suhail Gupta

Reputation: 23256

What is the purpose of the scripts section in package.json?

What is the scripts section inside package.json?

"scripts": {
   "test": "echo \"Error: no test specified\" && exit 1",
   "start-me" : "node one.js",
   "start-over" : "node two.js"

}

What does start-me and start-over mean here?

Upvotes: 2

Views: 1961

Answers (1)

jesusgn90
jesusgn90

Reputation: 569

The 'scripts' section can be used by the npm or yarn commands to allow you to do the following; npm run start-me at which point it will execute node one.js

Upvotes: 7

Related Questions