lib/utils/finder.js
function getInfoSync(dir) {
  var fullname = path.join(dir, '.epm/CONFIG');
  if (!fs.existsSync(fullname)) {
    return {
      name: 'unknown',
      engine: 'unknown',
      path: dir
    };
  }

  var info = JSON.parse(fs.readFileSync(fullname, 'utf-8'));

  return {
      name: info.name || 'unknown',
      engine: info.engine || 'unknown',
      path: dir
    };
}
function getInfoSync(dir) {
  var fullname = path.join(dir, '.epm/CONFIG');
  if (!fs.existsSync(fullname)) {
    return {
      name: 'unknown',
      engine: 'unknown',
      path: dir
    };
  }

  var info = JSON.parse(fs.readFileSync(fullname, 'utf-8'));

  return {
      name: info.name || 'unknown',
      engine: info.engine || 'unknown',
      path: dir
    };
}
helpers 
Get the info of the repository on `dir` sync

@param {String} dir