resolve.js
function clients(options) {
  options = options || {};
  options.registry = options.registry || Registry.mirrors.nodejitsu;

  var githulk = options.githulk || new GitHulk();

  //
  // Only create a new Registry instance if we've been supplied with a string.
  //
  var npm = 'string' !== typeof options.registry
    ? options.registry
    : new Registry({
      registry: options.registry,
      githulk: githulk
  });

  return {
    git: githulk,
    npm: npm
  };
}
function clients(options) {
  options = options || {};
  options.registry = options.registry || Registry.mirrors.nodejitsu;

  var githulk = options.githulk || new GitHulk();

  //
  // Only create a new Registry instance if we've been supplied with a string.
  //
  var npm = 'string' !== typeof options.registry
    ? options.registry
    : new Registry({
      registry: options.registry,
      githulk: githulk
  });

  return {
    git: githulk,
    npm: npm
  };
}
function clients ( options ) { options = options || { } ; options . registry = options . registry || Registry . mirrors . nodejitsu ; var githulk = options . githulk || new GitHulk ( ) ; // // Only create a new Registry instance if we've been supplied with a string. // var npm = 'string' !== typeof options . registry ? options . registry : new Registry ( { registry : options . registry , githulk : githulk } ) ; return { git : githulk , npm : npm } ; }
Simple helper function to get a working npm and githulk client.

@param {Object} options Configuration.
@returns {Object} Pre-configured npm and git.
@api private
Simple helper function to get a working npm and githulk client .