What is package.json?
package.json is the manifest file for a Node.js project. It commonly contains the project name, version, scripts, dependencies, development dependencies, module configuration, metadata, and other project settings. It allows npm and other tooling to understand how the project should be installed and executed.
Key Takeaways
- package.json describes a Node.js project.
- Dependencies and scripts are commonly defined there.
- It is a central configuration file for npm projects.
Knowledge Check
What is the main purpose of package.json?