https://github.com/indexzero/npm-codependencies
Calculate codependency relationships for npm modules.
https://github.com/indexzero/npm-codependencies
Last synced: about 1 year ago
JSON representation
Calculate codependency relationships for npm modules.
- Host: GitHub
- URL: https://github.com/indexzero/npm-codependencies
- Owner: indexzero
- License: apache-2.0
- Created: 2014-05-20T08:23:59.000Z (about 12 years ago)
- Default Branch: master
- Last Pushed: 2014-10-28T21:55:25.000Z (over 11 years ago)
- Last Synced: 2025-04-01T18:59:02.424Z (about 1 year ago)
- Language: JavaScript
- Size: 477 KB
- Stars: 2
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# npm-codependencies
Analyze codependency relationships between package `dependencies`, `devDependencies`, `peerDependencies`, and/or `optionalDependencies`.
## Usage
There are two distinct ways to use `npm-codependencies`:
### 1. Use it programmatically
``` js
var codeps = require('npm-codependencies');
codeps({
package: package,
registry: registry,
skip: skip,
top: top,
debug: process.env['DEBUG']
}, function (err, results) {
//
// The returned `results` will be the set of the
// types of dependencies with respective counts for
// the co*dependencies.
//
console.dir(results.dependencies);
console.dir(results.devDependencies);
});
```
### 2. Use from the command line
```
npm install npm-codependencies -g
npm-codependencies -r http://skimdb.nodejitsu.com -p $PACKAGE_NAME
cat "$PACKAGE_NAME.json"
```
##### License: Apache 2
##### Author: [Charlie Robbins](https://github.com/indexzero)
##### Contributors: [Jane Kim](https://github.com/janecakemaster)