@eropple/find-up

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

Usage no npm install needed!

<script type="module">
  import eroppleFindUp from 'https://cdn.skypack.dev/@eropple/find-up';
</script>

README

@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.