lib/get_cache_key.js
function resolveDir(directories)
{
  var directoriesAbsPath;

  if (typeOf(directories) == 'array')
  {
    directoriesAbsPath = directories.map(function(d)
    {
      return path.resolve(d);
    }).join('|');
  }
  else
  {
    directoriesAbsPath = path.resolve(directories);
  }

  return directoriesAbsPath;
}
function resolveDir(directories)
{
  var directoriesAbsPath;

  if (typeOf(directories) == 'array')
  {
    directoriesAbsPath = directories.map(function(d)
    {
      return path.resolve(d);
    }).join('|');
  }
  else
  {
    directoriesAbsPath = path.resolve(directories);
  }

  return directoriesAbsPath;
}
function resolveDir ( directories ) { var directoriesAbsPath ; if ( typeOf ( directories ) == 'array' ) { directoriesAbsPath = directories . map ( function ( d ) { return path . resolve ( d ) ; } ) . join ( '|' ) ; } else { directoriesAbsPath = path . resolve ( directories ) ; } return directoriesAbsPath ; }
Resolves `directories` argument into a absolute path

@param   {array|string} directories - directories to resolve
@returns {string} - absolute path to the directories
Resolves directories argument into a absolute path