Reputation: 23256
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
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