depcheck

Check for unused Deno dependencies

MIT License

Stars
4
Committers
4

depcheck, inspired by NPM's depcheck.

Table of Contents

Quick Start

$ 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.

Documentation

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

License

By contributing your code, you agree to license your contribution under the MIT License.