node package manager
Easy collaboration. Discover, share, and reuse code in your team. Create a free org »

nearest-file

Find nearest file in path

var find = require('nearest-file');
// Get content of nearest .gitconfig in given path from end to root 
var config = find(__dirname, '.gitconfig');