index.js
function processZtagOutput(output) {
  return output.split('\n').reduce(function(memo, line) {
    var match, key, value;
      match = ztagRegex.exec(line);
      if(match) {
        key = match[1];
        value = match[2];
        memo[key] = value;
      }
      return memo;
  }, {});
}
function processZtagOutput(output) {
  return output.split('\n').reduce(function(memo, line) {
    var match, key, value;
      match = ztagRegex.exec(line);
      if(match) {
        key = match[1];
        value = match[2];
        memo[key] = value;
      }
      return memo;
  }, {});
}
function processZtagOutput ( output ) { return output . split ( '\n' ) . reduce ( function ( memo , line ) { var match , key , value ; match = ztagRegex . exec ( line ) ; if ( match ) { key = match [ 1 ] ; value = match [ 2 ] ; memo [ key ] = value ; } return memo ; } , { } ) ; }
process group of lines of output from a p4 command executed with -ztag
process group of lines of output from a p4 command executed with - ztag