What are the '.package-lock.json' files in node_modules?

Viewed 44

I just realized that in the node_modules folder, there are several .package-lock.json files. What is the use of them? And how are they different from the package-lock.json file in the top level folder?

1 Answers

For the package-lock in your node_modules : Those are the informations such as versions, name, author, dependancies,..etc from the respective libraries you installed in your project.

For the package-lock in your root folder : Same informations but directly related to your project.

Related