seekout

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

MIT 2 个版本
安装
npm install seekout
yarn add seekout
pnpm add seekout
bun add seekout
README

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"
版本列表
1.0.2 2016-02-20
1.0.1 2016-02-20