dist/lib/package.js
function readPackages() {
  var packages = arguments.length <= 0 || arguments[0] === undefined ? [] : arguments[0];

  return Promise.all(packages.map(readPackage)).then(function (labels) {
    return labels.reduce(function (prev, curr) {
      return prev.concat(curr);
    });
  });
}
function readPackages() {
  var packages = arguments.length <= 0 || arguments[0] === undefined ? [] : arguments[0];

  return Promise.all(packages.map(readPackage)).then(function (labels) {
    return labels.reduce(function (prev, curr) {
      return prev.concat(curr);
    });
  });
}
function readPackages ( ) { var packages = arguments . length <= 0 || arguments [ 0 ] === undefined ? [ ] : arguments [ 0 ] ; return Promise . all ( packages . map ( readPackage ) ) . then ( function ( labels ) { return labels . reduce ( function ( prev , curr ) { return prev . concat ( curr ) ; } ) ; } ) ; }
Processes a list of packages and concatenates their contents into a single object.

@name readPackages
@function
@param {Array} packages array of paths to package files
@return {Promise}
Processes a list of packages and concatenates their contents into a single object .