antv-l7/node_modules/seekout
thinkinggis f7e5376b7d fix(fix css): fix css png 2019-11-22 18:04:14 +08:00
..
LICENSE fix(fix css): fix css png 2019-11-22 18:04:14 +08:00
index.js fix(fix css): fix css png 2019-11-22 18:04:14 +08:00
package.json fix(fix css): fix css png 2019-11-22 18:04:14 +08:00
readme.md fix(fix css): fix css png 2019-11-22 18:04:14 +08:00

readme.md

seekout

Looks for a provided file in the current directory. Also checks all parent directories and returns the first found file path.

Installation

$ npm install seekout

Usage

const seekout = require('seekout');

seekout('.npmrc');
// "/Users/sullenor/.npmrc"
// or null if file was not found

You can also specify any certain working directory by the second argument.

const seekout = require('seekout');

seekout('package.json', './seekout');
// "/../seekout/package.json"