0.4.1 • Published 9 years ago

depscan v0.4.1

Weekly downloads
43
License
ISC
Repository
github
Last release
9 years ago

Depscan

This finds unused dependencies in your node project.

Installation

npm install -g depscan

Usage

  • go to target dir and run depscan or do depscan ../source.js
  • You can also scan multiple entry points by doing depscan ../source1.js ../source2.js

Output

Output looks like this:

These dependencies are not used:

imap
mailparser
mail-listener2
mailstrip

These dependencies are missing in package.json:

msgpack
policyfile

Programmatic Usage

var depscan = require('depscan');
var scan = depscan('./index.js', __dirname);

var report = scan.report();
console.log(report);

report is an object like this:

{
  unused: ['foo'],
  missing: ['bar','baz']
}
0.4.1

9 years ago

0.4.0

10 years ago

0.3.1

10 years ago

0.3.0

10 years ago

0.2.1

10 years ago

0.2.0

10 years ago

0.1.1

10 years ago

0.1.0

10 years ago