find-up-path
v1.0.0
Published
Find the path of the first file matching a given name, walking the filesystem upwards.
Downloads
67,204
Maintainers
Readme
Find Up Path
Find the path of the first file matching a given name, walking the filesystem upwards.
Install
npm install --save find-up-path
Usage
import findUpPath from 'find-up-path';
const packagePath = findUpPath ( 'package.json' ); // => '/path/to/package.json' | undefined
License
MIT © Fabio Spampinato