lib/index.js
function handleMismatch(results, config) {
  if (results.length) {
    var message = 'Out of date packages: \n' + results.map(function (p) {
      return moduleInfo(p);
    }).join('\n');
    if (config.throw === undefined || config.throw !== undefined && config.throw) {
      throw new _gulpUtil.PluginError('gulp-npm-check', {
        name: 'NpmCheckError',
        message: message
      });
    } else {
      (0, _gulpUtil.log)(_gulpUtil.colors.yellow('gulp-npm-check\n', message));
    }
  } else {
    (0, _gulpUtil.log)('All packages are up to date :)');
  }
}
function handleMismatch(results, config) {
  if (results.length) {
    var message = 'Out of date packages: \n' + results.map(function (p) {
      return moduleInfo(p);
    }).join('\n');
    if (config.throw === undefined || config.throw !== undefined && config.throw) {
      throw new _gulpUtil.PluginError('gulp-npm-check', {
        name: 'NpmCheckError',
        message: message
      });
    } else {
      (0, _gulpUtil.log)(_gulpUtil.colors.yellow('gulp-npm-check\n', message));
    }
  } else {
    (0, _gulpUtil.log)('All packages are up to date :)');
  }
}
function handleMismatch ( results , config ) { if ( results . length ) { var message = 'Out of date packages: \n' + results . map ( function ( p ) { return moduleInfo ( p ) ; } ) . join ( '\n' ) ; if ( config . throw === undefined || config . throw !== undefined && config . throw ) { throw new _gulpUtil . PluginError ( 'gulp-npm-check' , { name : 'NpmCheckError' , message : message } ) ; } else { ( 0 , _gulpUtil . log ) ( _gulpUtil . colors . yellow ( 'gulp-npm-check\n' , message ) ) ; } } else { ( 0 , _gulpUtil . log ) ( 'All packages are up to date :)' ) ; } }
do things with results
@param  {array} results results from npm-check
@param  {config} config object
 
Default method
@param  {!config} config object
@param  {Function} cb callback
do things with results