{"size": 438, "ext": "js", "max_stars_repo_path": "docs/kframe/lib/scripts/install.js", "max_stars_repo_name": "jsdelivrbot/APieceOfArtAsBigAsIndia", "max_stars_repo_stars_event_min_datetime": "2016-10-10T22:26:07.000Z", "max_stars_repo_stars_event_max_datetime": "2018-06-19T21:32:04.000Z", "max_issues_repo_path": "docs/kframe/lib/scripts/install.js", "max_issues_repo_name": "jsdelivrbot/APieceOfArtAsBigAsIndia", "max_issues_repo_issues_event_min_datetime": "2016-11-08T23:33:33.000Z", "max_issues_repo_issues_event_max_datetime": "2016-11-11T18:43:45.000Z", "max_forks_repo_path": "docs/kframe/lib/scripts/install.js", "max_forks_repo_name": "jsdelivrbot/APieceOfArtAsBigAsIndia", "max_forks_repo_forks_event_min_datetime": "2016-11-01T10:10:01.000Z", "max_forks_repo_forks_event_max_datetime": "2018-12-10T01:30:24.000Z"}
{"max_stars_count": 8, "max_issues_count": 8, "max_forks_count": 4, "avg_line_length": 24.3333333333, "max_line_length": 60, "alphanum_fraction": 0.6780821918}
/*
  Install nested package.json directories.
*/
var childProcess = require('child_process');
var glob = require('glob');
var resolve = require('path').resolve;

glob.sync('components/*').forEach(function (componentPath) {
  // Install.
  var installPath = resolve(componentPath);
  console.log('npm installing', installPath);
  childProcess.spawn('npm', ['i'], {
    cwd: installPath,
    env: process.env,
    stdio: 'inherit'
  });
})
