Project FilesLesson 191Free preview
package.json Generator
This lesson is part of Web Developer Tools · All levels
Summary
The package.json generator creates a Node.js project manifest that contains names, versions, scripts, and dependency lists. This file is read npm when running a command such as npm install or npm run. By filling it correctly, the project can be reinstalled on other computers consistently.
Key points
- Name should be a lowercase and preferably without spaces
- Version follows semantic versioning rules such as 1.4.2
- Dependencies are used when applications are running, devDependencies are only used during development
- Field scripts store commands executed through npm run
- Preventing packets from being accidentally published to npm
Full lesson
Code examples and quizzes
Full lessons, code examples, and quizzes are available to subscribers. 5 questions.