package.json
noun
say it: “PAK-ij DOT JAY-sun” /ˈpækɪdʒ dɒt ˈdʒeɪsən/
The file that describes a Node.js project: its name, its scripts and the packages it needs.
What does package.json do?
package.json describes a Node project: its name, scripts, and the packages it depends on.
{
"name": "recipe-api",
"type": "module",
"scripts": { "start": "node server.js", "dev": "node --watch server.js" },
"dependencies": { "express": "^5.1.0" }
}
In a sentence
- “npm start runs the start script listed in package.json.”
Level: Novice · More Node.js terms at this level
Updated