deedee
v1.4.40
Published
A tool for detecting dependencies
Downloads
42
Maintainers
Readme
deedee
Identifying all the dependencies used in a project can be difficult, especially when they're spread out across many files and directories.
Deedee can locate dependencies for a variety of languages and produce a summary of the names of those dependencies as well as their versions and other relevant information.
This information can help highlight a number of issues in projects, such as out-of-date libraries, unused dependencies, and problems in package manifest files.
Supports
- [x] Node.js
- [x] Bower
- [x] PHP (Composer)
- [ ] Inline
<script>
tags - [ ] CSS
@import
- [ ] Ruby
- [ ] Python
- [ ] Go
- [ ] ...
Installation
$ npm install --save deedee
Or install it globally to use it from the command line:
$ npm install -g deedee
Usage
The easiest way to use deedee is from the command line:
$ deedee ./node_modules/growl
Output
node_modules/growl/package.json
Name: growl
Type: Node.js (devDependencies)
eslint ^4.8.0
eslint-config-airbnb-base ^12.0.1
eslint-plugin-import ^2.7.0
eslint-plugin-node ^5.2.0
You can also easily use it in a project:
import path from 'path';
import deedee from '../lib/deedee.js';
deedee({
path: path.resolve('..'),
recursive: false
}).then(deps => {
console.log(JSON.stringify(deps, null, 2));
});
License
MIT © Forrest Desjardins