module-version-check
Check for outdated
npm
dependencies and report to HipChat.
Features
- Tells you what's out of date.
- Provides a link to the package's documentation so you can decide if you want the update.
- You can send output to the HipChat Room or output to the console
- Very easy to integrate as a daily (/nightly) reporting tool with HipChat notifications
Installation
$ npm install -g module-version-check
Usage
Node HipChat api
var moduleVersionChecker = ; var params = "hipchat": "color": "red" "token": "" "room": 1 "output": "console": false // if true, outputs result into console "hipchat": true // if true, sends result to HipChat path: '' // path to the directory where to check ;
Results will be an object that looks like this:
when: moduleName: 'when' homepage: 'http://cujojs.com' error: undefined latest: '3.7.7' installed: '3.7.7' isInstalled: '3.7.7' notInstalled: false packageWanted: '3.7.7' packageJson: '^3.7.7' isPrivate: undefined devDependency: false usedInScripts: undefined mismatch: false semverValidRange: '>=3.7.7 <4.0.0' semverValid: '3.7.7' easyUpgrade: true bump: null unused: false
cwd
and send result to the console
Check $ module-version-check