unused-modulesdeprecated

Detects the node package modules listed in your package.json that are not actually being used in your code.

Usage no npm install needed!

<script type="module">
  import unusedModules from 'https://cdn.skypack.dev/unused-modules';
</script>

README

unused-modules

Detects the node package modules listed in your package.json that are not actually being used in your code.

Build Status

install

Install globally to use as a command line tool

npm install unused-modules

examples

TODO

  • Handle global modules (with flag?)
  • Handle package.json files in sub-folders (Good for both handling applications with multiple package.json files, also good to check multiple projects/libraries)
  • Tests (probably needed when doing above)

license

MIT

author

Shuan Wang (shuanwang@gmail.com)