DepLint (v1.1.3) is a lightweight CLI tool that checks that all require/import statements in your JavaScript/TypeScript code are listed as dependencies in package.json. It scans declared file patterns and verifies that every module referenced exists in the project's dependency tree. Unlike similar tools (e.g., dependency-check, eslint-plugin-import), it is unopinionated about module resolution and focuses solely on dependency declaration completeness. It requires a custom 'deplint' key in package.json to configure file patterns and top-level module directories. Release cadence is low; last release was 2019. No known alternatives with identical configuration style.
npm install deplintNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows how to configure deplint in package.json with scanned files and modules, then run it to catch missing dependencies.
Set 'modules' to an array containing the root of your source (e.g., ["src"]), even if you have no sub-components.
Use complementary tools like 'npm-check' or 'depcheck' for unused or mismatched versions.
Use 'src/**/*.js' instead of 'src/*.js' to scan nested folders.
Evaluate if you need a more actively maintained alternative.
Add the module to package.json dependencies or devDependencies.
Add a 'deplint' key to package.json with a 'files' array.
No dependency data recorded yet.