Node.js · Junior · Question 21 of 75
What is package.json?
- 1A log of all npm commands that were run
- 2A file that stores downloaded package code
- ✓Correct answer: A file that describes the project: name, version, scripts, dependencies and settings
Explanation
It is the project manifest. npm init creates it. Fields like type, exports and engines also tell Node.js and npm how to treat the package.