1.1.6 • Published 10 years ago

module-version-check v1.1.6

Weekly downloads
18
License
ISC
Repository
github
Last release
10 years ago

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 = require('module-version-check');

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
}

moduleVersionChecker(params).then(function(results){
    // After all output was rendered and sent to the HipChat (and/or console)
    // Do something else with detailed results here
});

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 
    } 
}

hipchat

Check cwd and send result to the console

$ module-version-check

console

1.1.6

10 years ago

1.1.5

10 years ago

1.1.4

10 years ago

1.1.3

10 years ago

1.1.2

10 years ago

1.1.1

10 years ago

1.1.0

10 years ago

1.0.6

10 years ago

1.0.5

10 years ago

1.0.4

10 years ago

1.0.3

10 years ago