Check for unused dependencies
depcheck, inspired by NPM's depcheck
.
$ deno run --allow-read='.' https://deno.land/x/[email protected]/mod.ts
You can even use this as a step in your CI, as if unused dependencies are found, the process will fail.
depcheck checks for any unused dependencies in your project. It will pull
dependencies used in deps.ts
and tests/deps.ts
/test/deps.ts
(if either
exist), and check if each one is used within your project, returning a response
of if any dependencies are unused.
Alternatively, you can pass in an argument to explicitely tell depcheck to check
that file. Depcheck will still try check a tests deps.ts
automatically:
$ deno run --allow-read ='.' https://deno.land/x/[email protected]/mod.ts deps.js
By contributing your code, you agree to license your contribution under the MIT License.