lib/shared.js
function containsPath(self, dirname) {
  return self.__paths__.some(function(p) {
    return p === dirname.substr(0, p.length);
  });
}
function containsPath(self, dirname) {
  return self.__paths__.some(function(p) {
    return p === dirname.substr(0, p.length);
  });
}
function containsPath ( self , dirname ) { return self . __paths__ . some ( function ( p ) { return p === dirname . substr ( 0 , p . length ) ; } ) ; }
Returns true if `dirname` is a subdirectory of any of the `paths`
Returns true if dirname is a subdirectory of any of the paths