Loading
A file that describes your project — its name, version, and what libraries it needs — like an ingredient list for a recipe.
The manifest file for Node.js projects that declares metadata (name, version), dependencies, devDependencies, scripts, and entry points. It is the source of truth for what npm install fetches and what npm run executes.
package.json supports conditional exports (exports field with subpath patterns and condition names like 'import', 'require', 'browser', 'default'), type: 'module' for ESM-by-default, engines constraints, overrides for transitive dependency resolution, and sideEffects: false for tree-shaking hints. The scripts field provides lifecycle hooks (preinstall, prepare, postinstall) executed by the package manager.