Module BasicsLesson 17Free preview
Node package.json
This lesson is part of Node.js · All levels
Summary
Package.json is the configuration center of the Node.js project: it contains metadata, dependencies, and executable scripts. This file makes the project easy to share because others just run npm installs. Also, fields like play and type determine how Node loads your project modules.
Key points
- Package.json stores project metadata such as name, version, and description
- Dependencies contain production packages, devDependencies for tooling development
- Field scripts contain commands that can be run through npm run
- Npm init -y makes package.json with a default value quickly
Full lesson
Code examples and quizzes
Full lessons, code examples, and quizzes are available to subscribers. 5 questions.