Search upwards for files.


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.

Install via NPM. npm install uppity

var uppity = require("uppity"),
files = uppity("*.txt");
  • pattern {String} Pattern to be matched
  • options {Object} glob options