nl_tokens: Searches for a file with a specified name starting with dir and going all the way up either until it finds the file or hits the root .
pl_tokens: function findFile ( name , dir ) { dir = dir || process . cwd ( ) ; var filename = path . normalize ( path . join ( dir , name ) ) ; if ( findFileResults [ filename ] !== undefined ) { return findFileResults [ <mask> ] ; } var parent = path . resolve ( dir , "../" ) ; if ( shjs . test ( "-e" , filename ) ) { findFileResults [ filename ] = filename ; return filename ; } if ( dir === parent ) { findFileResults [ filename ] = null ; return null ; } return findFile ( name , parent ) ; }