dependencies-diff

Merge dependencies and their versions

npm install dependencies-diff
6 downloads in the last week
8 downloads in the last month

dependencies-diff NPM version Build Status Dependency Status

Merge dependencies and their versions

This module will parse versions in dependencies property of package.json (or bower.json) and tell how much differs they are.

API

dependencies-diff(current, fresh)

Returns difference between current and fresh objects.

Example

var dd = require('dependencies-diff');

dd({
    express: '3.4.1'
}, {
    express: '4.3.1'
});

/* Returns: 
{ 
    express: {
        major: 1,
        minor: -1,
        patch: 0
    }
}
*/

License

MIT (c) 2013 Vsevolod Strukchinsky (floatdrop@gmail.com)

npm loves you