1.0.0 • Published 8 years ago

lookup-fs v1.0.0

Weekly downloads
4
License
MIT
Repository
github
Last release
8 years ago

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
});