index.js
function available(dependencies) {
    if (!dependencies) return false;

    return Object.keys(dependencies).every(function every(key) {
      var dependency = dependencies[key];

      if (!dependency) return false;

      if (dependency.name !== name) return true;
      if (dependency.version === version) return true;

      return false;
    });
  }
function available(dependencies) {
    if (!dependencies) return false;

    return Object.keys(dependencies).every(function every(key) {
      var dependency = dependencies[key];

      if (!dependency) return false;

      if (dependency.name !== name) return true;
      if (dependency.version === version) return true;

      return false;
    });
  }
function available ( dependencies ) { if ( ! dependencies ) return false ; return Object . keys ( dependencies ) . every ( function every ( key ) { var dependency = dependencies [ key ] ; if ( ! dependency ) return false ; if ( dependency . name !== name ) return true ; if ( dependency . version === version ) return true ; return false ; } ) ; }
Checks if the dependency tree does not already contain a different version
of this module.

@param {Object} dependencies The dependencies of a module.
@returns {Boolean} Available as module location.
@api private
Checks if the dependency tree does not already contain a different version of this module .