dep-rep

0.6.6 • Public • Published

dep-rep

Build Status Dependency Status devDependency Status

Dependency reporter for npm

Get started

CLI usage

npm i -g dep-rep

From then on, you can run dep-rep in any folder containing a package.json.

Check dep-rep -h for more CLI options.

Path declaration

-p or --path can be a local or a remote (https) path to a package.json, e.g.

Local:

dep-rep -p="../dep-rep/package.json"
 
# or 
 
dep-rep -p="/Users/user/dev/dep-rep/package.json"

Remote:

dep-rep -p="https://raw.githubusercontent.com/kevin-smets/dep-rep/master/package.json"

Output example

Output will look like this:

Image of CLI output

Or, if everything is fine:

Image of CLI output

Node usage

npm i -D dep-rep
const depRep = require('dep-rep');
 
depRep.analyze(options)
  .then(function(result){
    console.log(result);
  })
  .catch(function(err){
    console.log("Ruh Roh: " + err);
  })

options is an object that takes the same properties as the CLI parameters (except for version). E.g. options.silent = true.

The returned result is not a contract set in stone yet (this module is still in prerelease status).

TODO

  • add bower support
  • add dependency management
  • handle -alpha or -rc.1 versions

Contribute

Run tests

npm test

Generate coverage

npm run coverage

Package Sidebar

Install

npm i dep-rep

Weekly Downloads

5

Version

0.6.6

License

MIT

Last publish

Collaborators

  • kevin-smets