lib/index.js
function getSharedDeps(pkgs, hash) {
  return pkgs.map(({ name }) => {
    if (hash[name]) {
      return name;
    }
    return false;
  }).filter(Boolean);
}
function getSharedDeps(pkgs, hash) {
  return pkgs.map(({ name }) => {
    if (hash[name]) {
      return name;
    }
    return false;
  }).filter(Boolean);
}
function getSharedDeps ( pkgs , hash ) { return pkgs . map ( ( { name } ) => { if ( hash [ name ] ) { return name ; } return false ; } ) . filter ( Boolean ) ; }
getSharedDeps will show any shared dependencies between project & target dir
@param  {Array} pkgs   An array of dependencies
@param  {Object} hash  A hash map of our deps
@return {Array}  Array of shared dep names
getSharedDeps will show any shared dependencies between project & target dir