/find-up

Recursively searches upward to find files/directories in parent paths.

Primary LanguageTypeScript

@eropple/find-up

This library is a small helper for, given a directory, locating a file in or above that directory. I use it to easily track down package.json files to determine the root of a given package, to make it easier to navigate to non-JS assets like email templates and the like.