1.0.0 • Published 8 years ago
lookup-fs v1.0.0
lookup-fs
Looks for a provided file in the current directory. Also checks all parent directories and returns the first found file path.
Installation
$ npm install lookup-fs
Usage
var lookupFileSystem = require('lookup-fs');
lookupFileSystem('.npmrc', function (err, filepath) {
if (err) {
throw err;
}
console.log(filepath); // /Users/sullenor/.npmrc
// or null if file was not found
});
1.0.0
8 years ago