Every npm package contains a file in the project root, which is package.json. The project related various metadata is stored inside it. The package.json file is used to share information to npm that allows it to identify the project and hand its dependencies. This file can also contain other metadata of project such as license information, configuration data, project description, project version, etc. which are crucial for both for the end-users of the package as well as npm.

BY Best Interview Question ON 16 Feb 2020