npm

Need private packages and team management tools?Check out npm Orgs. »

depscan

0.4.1 • Public • Published

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']
}

Keywords

none

install

npm i depscan

Downloadsweekly downloads

15

version

0.4.1

license

ISC

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability