checks which modules you have used in your code and then makes sure they are listed as dependencies in your package.json
dependency-check is an npm package and linting tool for Node.js projects that analyzes which modules are actually used in your code and verifies they are listed in package.json, or conversely, identifies dependencies in package.json that aren't used in the code. It works by parsing JavaScript files starting from default entry points, recursively following relative requires while collecting non-relative module references, then comparing that list against the declared dependencies. The tool is built with JavaScript and uses the precinct library by default for parsing require() statements, though it supports custom detective-style parsers and can be extended with different file extensions and analysis modes.