https://github.com/jutaz/node-depscan
This finds unused deppendencies.
https://github.com/jutaz/node-depscan
Last synced: 2 months ago
JSON representation
This finds unused deppendencies.
- Host: GitHub
- URL: https://github.com/jutaz/node-depscan
- Owner: jutaz
- Created: 2014-05-27T17:07:06.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2015-06-10T12:48:28.000Z (almost 10 years ago)
- Last Synced: 2025-01-22T11:12:37.320Z (4 months ago)
- Language: JavaScript
- Size: 205 KB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
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
mailstripThese dependencies are missing in package.json:
msgpack
policyfile```
# Programmatic Usage
```javascript
var depscan = require('depscan');
var scan = depscan('./index.js', __dirname);var report = scan.report();
console.log(report);
```
`report` is an object like this:
```javascript
{
unused: ['foo'],
missing: ['bar','baz']
}
```