findup-sync

Find the first file matching a given pattern in the current directory or the nearest ancestor directory.

find-pkg

Find the first directory with a package.json, recursing up, starting with the given directory. Similar to look-up but does not support globs and only searches for package.json. Async and sync.