node package manager
Loosely couple your services. Use Orgs to version and reuse your code. Create a free org »

dependencies-diff

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)