Skip to content

ebebbington/depcheck

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

depcheck logo

depcheck

Check for unused dependencies


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.

About

Check for unused Deno dependencies

Resources

License

Stars

Watchers

Forks

Sponsor this project

 

Packages

No packages published