If you want to check if a Directory is an NPM directory, use

npm root

package.json and package-lock.json are both required by NPM.
These files contains essential metadata about the project, including its name, version, dependencies, and scripts


npm research development