function analyzePackages(options) {
  const analyzePackages = require('./analyze-packages.js');

  log(text.analyzing);
  const result = analyzePackages(options);

  // Compute the total size of the analyzed versions.
  const packages = result.packages;
  let bytes = 0;

  for (let name in packages) {
    packages[name].versions.forEach((version) => {
      bytes += version.size;
    });
  }

  log(text.packagesTotal(bytes, result.cached));

  return result;
}
// space. Returns an object with information about each package.
space. Returns an object with information about each package.
space . Returns an object with information about each package .
function analyzePackages(options) {
  const analyzePackages = require('./analyze-packages.js');
  log(text.analyzing);
  const result = analyzePackages(options);
  const packages = result.packages;
  let bytes = 0;
  for (let name in packages) {
    packages[name].versions.forEach((version) => {
      bytes += version.size;
    });
  }
  log(text.packagesTotal(bytes, result.cached));
  return result;
}
function analyzePackages ( options ) { const analyzePackages = require ( './analyze-packages.js' ) ; log ( text . analyzing ) ; const result = analyzePackages ( options ) ; const packages = result . packages ; let bytes = 0 ; for ( let name in packages ) { packages [ name ] . versions . forEach ( ( version ) => { bytes += version . size ; } ) ; } log ( text . packagesTotal ( bytes , result . cached ) ) ; return result ; }
space.
space .
// Compute the total size of the analyzed versions.