uppity

Search upwards for files.

Usage no npm install needed!

<script type="module">
  import uppity from 'https://cdn.skypack.dev/uppity';
</script>

README

uppity

Build Status Packages

Glob every directory in the current branch of the file system tree, returning files that match in order from closest to furthest. Synchronously, because this is intended for CLI usage.

This is pretty new, findup-sync may be more like what you're after.

Usage

Install via NPM: npm install uppity

const uppity = require("uppity");
    
const files = uppity("*.txt");

uppity(pattern, [options])

  • pattern {String} Pattern to be matched
  • options {Object} glob options