Nominally Patriotic Meathead
Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

npm-codependencies

1.0.0 • Public • Published

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

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"
Author: Charlie Robbins
License: Apache 2

Keywords

none

install

npm i npm-codependencies

Downloadsweekly downloads

3

version

1.0.0

license

Apache 2

last publish

collaborators

  • avatar