JSPM

  • Created
  • Published
  • Downloads 1134896
  • Score
    100M100P100Q197816F
  • License MIT

Check dependencies in your node module

Package Exports

  • depcheck

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (depcheck) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

depcheck

build status

Easily check your npm dependencies in order to get rid of unused ones. Bonus: it checks for grunt.loadNpmTasks and grunt.tasks.loadNpmTasks too, so there shouldn't be any false positives.

Installation

npm install depcheck -g

Usage

As easy as depcheck [DIRECTORY].

Where DIRECTORY is the root directory of your application (where the package.json is).

This will list all the unused dependencies in your code if any.

Options:

-dev : by default depcheck looks only at "dependencies", this flag will tell it to look at "devDependencies" too.

Future

Well, it's more of a "What do you think guys?".

There are a couple of things I would like to do if anyone is interested:

  • There could be false positives, we could have a white list of modules that you know you are using and that depcheck can't find in your code
  • A grunt-contrib-depcheck would be nice

License

MIT